diff options
author | Felipe Orlando <bee.sql@gmail.com> | 2015-11-22 06:04:20 -0200 |
---|---|---|
committer | Felipe Orlando <bee.sql@gmail.com> | 2015-11-22 06:04:20 -0200 |
commit | 075e3661c534a06753065e9e3323168b786cdbe5 (patch) | |
tree | 9228cdf1b5428791da959ff740b6038177daa19b /app/controllers/autocomplete_controller.rb | |
parent | 9155c82fdc075b7a3ef7f45224cbe5382c2ec7f9 (diff) | |
download | gitlab-ce-075e3661c534a06753065e9e3323168b786cdbe5.tar.gz |
Update autocomplete_controller to be more readable
Diffstat (limited to 'app/controllers/autocomplete_controller.rb')
-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 aa0268b8d62..77c8dafc012 100644 --- a/app/controllers/autocomplete_controller.rb +++ b/app/controllers/autocomplete_controller.rb @@ -9,7 +9,7 @@ class AutocompleteController < ApplicationController @users = @users.reorder(:name) @users = @users.page(params[:page]).per(PER_PAGE) - unless params[:search].present? + if params[:search].blank? # Include current user if available to filter by "Me" if params[:current_user] && current_user @users = [*@users, current_user].uniq |