Class RolesController
In: app/controllers/roles_controller.rb
Parent: GenericRestController

Methods

Public Instance methods

[Source]

    # File app/controllers/roles_controller.rb, line 33
33:   def edit
34:     self.resource = find_resource
35:     render :action => 'show'
36:   end

[Source]

    # File app/controllers/roles_controller.rb, line 28
28:   def index
29:     @role = Role.new
30:     super
31:   end

Protected Instance methods

[Source]

    # File app/controllers/roles_controller.rb, line 44
44:   def find_resource
45:     Role.find( params[:id] ).check_permission!( :edit )
46:   end

[Source]

    # File app/controllers/roles_controller.rb, line 40
40:   def find_resources
41:     Role.all_permitting :edit
42:   end

[Validate]