Class: AdminController

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

Constant Summary

Constants included from FlashTruncation

FlashTruncation::STRING_OVERHEAD

Instance Method Summary collapse

Methods inherited from ApplicationController

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

Methods included from FlashTruncation

#max_flash_size, #truncate_flash, #truncate_flash_array

Instance Method Details

#filterObject



8
9
10
11
# File 'app/controllers/admin_controller.rb', line 8

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

#indexObject



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

def index
end