diff options
author | Yar <YarTheGreat@gmail.com> | 2016-10-26 22:54:03 +0300 |
---|---|---|
committer | Yar <YarTheGreat@gmail.com> | 2016-11-01 17:52:16 +0300 |
commit | 6893bccd06320c22162037047ab90fc90cfa0246 (patch) | |
tree | 55beebfc0ccac3e95da0fd8eaadec74487e56fbf /app/controllers/admin/users_controller.rb | |
parent | b328c7885532ccff70e1f9f7dc970a8dde0c52d6 (diff) | |
download | gitlab-ce-6893bccd06320c22162037047ab90fc90cfa0246.tar.gz |
Rename :name search parameter to :search_query at /admin/users
The parameter is used to search users by several criretia was
called :name. This request renames it to :search_query which closer
to it actual perpose
Diffstat (limited to 'app/controllers/admin/users_controller.rb')
-rw-r--r-- | app/controllers/admin/users_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index f35f4a8c811..57efa899694 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -3,7 +3,7 @@ class Admin::UsersController < Admin::ApplicationController def index @users = User.order_name_asc.filter(params[:filter]) - @users = @users.search(params[:name]) if params[:name].present? + @users = @users.search(params[:search_query]) if params[:search_query].present? @users = @users.sort(@sort = params[:sort]) @users = @users.page(params[:page]) end |