Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Orlando <bee.sql@gmail.com>2015-11-22 11:04:20 +0300
committerFelipe Orlando <bee.sql@gmail.com>2015-11-22 11:04:20 +0300
commit075e3661c534a06753065e9e3323168b786cdbe5 (patch)
tree9228cdf1b5428791da959ff740b6038177daa19b /app/controllers/autocomplete_controller.rb
parent9155c82fdc075b7a3ef7f45224cbe5382c2ec7f9 (diff)
Update autocomplete_controller to be more readable
Diffstat (limited to 'app/controllers/autocomplete_controller.rb')
-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 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