Class: Ability::GroupResourceType
- Inherits:
-
Permission::ResourceType
- Object
- Permission::ResourceType
- Ability::GroupResourceType
- Defined in:
- app/models/ability.rb
Overview
Instance Method Summary collapse
- #actions ⇒ Object
-
#initialize ⇒ GroupResourceType
constructor
A new instance of GroupResourceType.
- #resources ⇒ Object
Methods inherited from Permission::ResourceType
#add_ability, #compare, for_class, #has_resource_list?, #role_can?, #roles_can?, #roles_permissions
Constructor Details
#initialize ⇒ GroupResourceType
Returns a new instance of GroupResourceType.
205 206 207 |
# File 'app/models/ability.rb', line 205 def initialize super(Group, 'Group') end |
Instance Method Details
#actions ⇒ Object
209 210 211 212 213 |
# File 'app/models/ability.rb', line 209 def actions [ :edit #Edit group memberships in admin backend ] end |
#resources ⇒ Object
215 216 217 |
# File 'app/models/ability.rb', line 215 def resources Group.scoped end |