Module: CanTango::Helpers::RoleMethods

Instance Method Summary collapse

Instance Method Details

#configObject



20
21
22
# File 'lib/cantango/helpers/role_methods.rb', line 20

def config
  CanTango.config
end

#has_role_group_methObject



8
9
10
# File 'lib/cantango/helpers/role_methods.rb', line 8

def has_role_group_meth
  config.role_groups.has_method
end

#has_role_methObject



4
5
6
# File 'lib/cantango/helpers/role_methods.rb', line 4

def has_role_meth
  config.roles.has_method
end

#role_groups_list_methObject



12
13
14
# File 'lib/cantango/helpers/role_methods.rb', line 12

def role_groups_list_meth
  config.role_groups.list_method
end

#roles_list_methObject



16
17
18
# File 'lib/cantango/helpers/role_methods.rb', line 16

def roles_list_meth
  config.roles.list_method
end