Module: RoleStrategy::Generic::OneRole

Extended by:
Roles::Generic::User::Configuration
Includes:
Roles::Generic::User::Implementation::Single
Defined in:
lib/roles_generic/strategy/single/one_role.rb

Defined Under Namespace

Modules: Implementation

Class Method Summary collapse

Methods included from Roles::Generic::User::Configuration

configure

Methods included from Roles::Generic::User::Implementation::Single

#add_roles, #remove_roles, #roles_list

Class Method Details

.default_role_attributeObject



3
4
5
# File 'lib/roles_generic/strategy/single/one_role.rb', line 3

def self.default_role_attribute
  :one_role
end

.included(base) ⇒ Object



32
33
34
# File 'lib/roles_generic/strategy/single/one_role.rb', line 32

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