Class: AdminController

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

Overview

rubocop:todo Style/Documentation

Constant Summary

Constants included from FlashTruncation

FlashTruncation::STRING_OVERHEAD

Instance Method Summary collapse

Methods inherited from ApplicationController

#block_api_access, #clean_params_from_check, #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


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

def filter
  @users = if params[:q].blank?
             User.all
           else
             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