Class: Aegis::Permissions

Inherits:
Object
  • Object
show all
Defined in:
lib/aegis/permissions.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.inherited(base) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/aegis/permissions.rb', line 4

def self.inherited(base)
  base.class_eval do
    @roles_by_name = {}
    @permission_blocks = Hash.new { |hash, key| hash[key] = [] }
    extend ClassMethods
  end
end