Class: PunditRolePlay::Role

Inherits:
Object
  • Object
show all
Defined in:
lib/pundit_role_play/role.rb

Direct Known Subclasses

ApplicationRole

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

.permissionsObject



13
14
15
# File 'lib/pundit_role_play/role.rb', line 13

def self.permissions
  Permissions.new(self)
end