summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-23 14:38:20 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-23 14:38:20 -0800
commita42d84eca30956ca9255f93e6803efb43e1874cf (patch)
tree82aec7034fb2d15805c9ccca5ecc3603eb8afc2c /app
parent25a5c84820c273a2dd76baa600a095fecc7c526a (diff)
downloadgitlab-ce-a42d84eca30956ca9255f93e6803efb43e1874cf.tar.gz
Faster autocomplete without unused description
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects_controller.rb2
-rw-r--r--app/services/projects/autocomplete_service.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 7fc283ef3d4..ae9d942853d 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -119,7 +119,7 @@ class ProjectsController < ApplicationController
}
respond_to do |format|
- format.json { render :json => @suggestions }
+ format.json { render json: @suggestions }
end
end
diff --git a/app/services/projects/autocomplete_service.rb b/app/services/projects/autocomplete_service.rb
index 09fc25cc1b3..7408e09ed1e 100644
--- a/app/services/projects/autocomplete_service.rb
+++ b/app/services/projects/autocomplete_service.rb
@@ -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