Commit a42d84ec authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Faster autocomplete without unused description

parent 25a5c848
......@@ -119,7 +119,7 @@ class ProjectsController < ApplicationController
}
respond_to do |format|
format.json { render :json => @suggestions }
format.json { render json: @suggestions }
end
end
......
......@@ -5,11 +5,11 @@ module Projects
end
def issues
@project.issues.opened.select([:iid, :title, :description])
@project.issues.opened.select([:iid, :title])
end
def merge_requests
@project.merge_requests.opened.select([:iid, :title, :description])
@project.merge_requests.opened.select([:iid, :title])
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment