Faster autocomplete without unused description
This commit is contained in:
parent
25a5c84820
commit
a42d84eca3
|
@ -119,7 +119,7 @@ class ProjectsController < ApplicationController
|
||||||
}
|
}
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.json { render :json => @suggestions }
|
format.json { render json: @suggestions }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,11 @@ module Projects
|
||||||
end
|
end
|
||||||
|
|
||||||
def issues
|
def issues
|
||||||
@project.issues.opened.select([:iid, :title, :description])
|
@project.issues.opened.select([:iid, :title])
|
||||||
end
|
end
|
||||||
|
|
||||||
def merge_requests
|
def merge_requests
|
||||||
@project.merge_requests.opened.select([:iid, :title, :description])
|
@project.merge_requests.opened.select([:iid, :title])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue