summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-11-18 16:10:48 +0000
committerPhil Hughes <me@iamphill.com>2016-11-18 16:10:48 +0000
commit17ac0fd53dbd1e9b330821bee3b03c0c537d9e1e (patch)
treedb56cd84c1e78040f172269e9c9c20c59a5c359e /app
parent548f48ef6dcb20ab401cc118052e1b9bcb4afccf (diff)
downloadgitlab-ce-17ac0fd53dbd1e9b330821bee3b03c0c537d9e1e.tar.gz
Improved Ruby code in autocomplete user search
Diffstat (limited to 'app')
-rw-r--r--app/controllers/autocomplete_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/autocomplete_controller.rb b/app/controllers/autocomplete_controller.rb
index fcfa508128e..5c44637fdee 100644
--- a/app/controllers/autocomplete_controller.rb
+++ b/app/controllers/autocomplete_controller.rb
@@ -55,7 +55,7 @@ class AutocompleteController < ApplicationController
def find_users
@users =
if @project
- user_ids = @project.team.users.map(&:id)
+ user_ids = @project.team.users.pluck(:id)
if params[:author_id].present?
user_ids << params[:author_id]