Module: RoleStrategy::Mongoid::ManyRoles

Extended by:
Roles::Generic::User::Configuration
Defined in:
lib/roles_mongoid/strategy/multi/many_roles.rb

Defined Under Namespace

Modules: ClassMethods, Implementation

Class Method Summary collapse

Class Method Details

.default_role_attributeObject



3
4
5
# File 'lib/roles_mongoid/strategy/multi/many_roles.rb', line 3

def self.default_role_attribute
  :many_roles
end

.included(base) ⇒ Object



7
8
9
10
# File 'lib/roles_mongoid/strategy/multi/many_roles.rb', line 7

def self.included base
  base.extend Roles::Generic::Role::ClassMethods
  base.extend ClassMethods
end