diff options
author | Phil Hughes <me@iamphill.com> | 2016-11-18 16:10:48 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-11-18 16:10:48 +0000 |
commit | 17ac0fd53dbd1e9b330821bee3b03c0c537d9e1e (patch) | |
tree | db56cd84c1e78040f172269e9c9c20c59a5c359e /app | |
parent | 548f48ef6dcb20ab401cc118052e1b9bcb4afccf (diff) | |
download | gitlab-ce-17ac0fd53dbd1e9b330821bee3b03c0c537d9e1e.tar.gz |
Improved Ruby code in autocomplete user search
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/autocomplete_controller.rb | 2 |
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] |