Module: RoleStrategy::MongoMapper::OneRole

Extended by:
Roles::Generic::User::Configuration
Defined in:
lib/roles_mongo_mapper/strategy/single/one_role.rb

Defined Under Namespace

Modules: ClassMethods, Implementation

Class Method Summary collapse

Class Method Details

.default_role_attributeObject



5
6
7
# File 'lib/roles_mongo_mapper/strategy/single/one_role.rb', line 5

def self.default_role_attribute
  :one_role
end

.included(base) ⇒ Object



9
10
11
12
13
14
# File 'lib/roles_mongo_mapper/strategy/single/one_role.rb', line 9

def self.included base
  base.extend Roles::Generic::Role::ClassMethods
  base.extend ClassMethods
  # base.key :one_role_id, ObjectId 
  # base.key :one_role, Role
end