Module: Roles::Mongoid

Defined in:
lib/roles_mongoid/strategy/multi.rb,
lib/roles_mongoid/strategy/shared.rb,
lib/roles_mongoid/strategy/single.rb,
lib/roles_mongoid/base.rb

Defined Under Namespace

Modules: ClassMethods, Strategy

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



9
10
11
12
13
# File 'lib/roles_mongoid/base.rb', line 9

def self.included(base) 
  base.extend Roles::Base
  base.extend ClassMethods
  base.orm_name = :mongoid
end