diff options
author | Phil Hughes <me@iamphill.com> | 2016-11-18 19:10:48 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-11-18 19:10:48 +0300 |
commit | 17ac0fd53dbd1e9b330821bee3b03c0c537d9e1e (patch) | |
tree | db56cd84c1e78040f172269e9c9c20c59a5c359e | |
parent | 548f48ef6dcb20ab401cc118052e1b9bcb4afccf (diff) |
Improved Ruby code in autocomplete user search
-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] |