Class: RolesController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#check_maintenance_mode, #redirect_if_maintenance_mode

Instance Method Details

#indexObject

GET /roles GET /roles.json



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

def index
  authorize! :read, Role
  @roles = Role.all
end