Class: CanTango::Configuration::RoleGroups

Inherits:
RoleRegistry show all
Includes:
Singleton
Defined in:
lib/cantango/configuration/role_groups.rb

Instance Attribute Summary collapse

Attributes inherited from RoleRegistry

#has_method, #list_method

Attributes inherited from Registry

#default, #registered

Instance Method Summary collapse

Methods inherited from RoleRegistry

#clear!, #exclude, #excluded, #filter?, #onlies, #only

Methods inherited from Registry

#[], #clean!, #default!, #register, #registered?, #types, #types=

Instance Attribute Details

#role_groups_systemObject



8
9
10
# File 'lib/cantango/configuration/role_groups.rb', line 8

def role_groups_system
  @role_groups_system ||= :troles
end

Instance Method Details

#default_has_methodObject



12
13
14
# File 'lib/cantango/configuration/role_groups.rb', line 12

def default_has_method
  :in_role_group?
end

#default_list_methodObject



16
17
18
# File 'lib/cantango/configuration/role_groups.rb', line 16

def default_list_method
  role_groups_list_map[role_groups_system] || :role_groups_list
end

#role_groups_list_mapObject



20
21
22
23
24
# File 'lib/cantango/configuration/role_groups.rb', line 20

def role_groups_list_map
  @role_groups_list_map ||= {
    :troles => :role_group_list
  }
end