admin area -> search for users
This commit is contained in:
parent
98a45ce6ee
commit
1903f6ade0
3 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,7 @@ class Admin::UsersController < ApplicationController
|
|||
def index
|
||||
@admin_users = User.scoped
|
||||
@admin_users = @admin_users.filter(params[:filter])
|
||||
@admin_users = @admin_users.search(params[:name]) if params[:name].present?
|
||||
@admin_users = @admin_users.order("updated_at DESC").page(params[:page])
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue