Class: Admin::PrivilegesController

Inherits:
AdminController
  • Object
show all
Includes:
EntityPriority, ToggleableEntity
Defined in:
app/controllers/admin/privileges_controller.rb

Instance Method Summary collapse

Methods included from ToggleableEntity

#toggle

Methods included from EntityPriority

#priority

Instance Method Details

#indexObject

get /admin/privileges



8
9
10
# File 'app/controllers/admin/privileges_controller.rb', line 8

def index
  @collection = Privilege.for_tree
end

#showObject

get /admin/privileges/:id



13
14
# File 'app/controllers/admin/privileges_controller.rb', line 13

def show
end

#usersObject

get /admin/privileges/:id/users



17
18
19
# File 'app/controllers/admin/privileges_controller.rb', line 17

def users
  @collection = @entity.users.page_for_administration(current_page)
end