Class: AdminController

Inherits:
ApplicationController show all
Defined in:
app/controllers/admin_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#block_api_access, #clean_params_from_check, #evil_parameter_hack!, #extract_header_info, #set_cache_disabled!

Instance Method Details

#filterObject


7
8
9
10
11
12
13
14
# File 'app/controllers/admin_controller.rb', line 7

def filter
  if params[:q].blank?
    @users = User.all
  else
    @users = User.where(login: params[:q])
  end
  render partial: 'admin/users/users', locals: { users: @users }
end

#indexObject


4
5
# File 'app/controllers/admin_controller.rb', line 4

def index
end