Class: PunditRolePlay::Role
- Inherits:
-
Object
- Object
- PunditRolePlay::Role
- Defined in:
- lib/pundit_role_play/role.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.inherited(subclass) ⇒ Object
7 8 9 10 11 |
# File 'lib/pundit_role_play/role.rb', line 7 def self.inherited(subclass) super PunditRolePlay.register_role(subclass.name) end |
.permissions ⇒ Object
13 14 15 |
# File 'lib/pundit_role_play/role.rb', line 13 def self. Permissions.new(self) end |