Module: CanTango::Helpers::RoleMethods
- Included in:
- Ability::Cache, Ability::CacheHelpers, Ability::RoleHelpers, Permits::RoleGroupPermit, Permits::RoleGroupPermit, Permits::RolePermit, Permits::RolePermit
- Defined in:
- lib/cantango/helpers/role_methods.rb
Instance Method Summary collapse
- #config ⇒ Object
- #has_role_group_meth ⇒ Object
- #has_role_meth ⇒ Object
- #role_groups_list_meth ⇒ Object
- #roles_list_meth ⇒ Object
Instance Method Details
#config ⇒ Object
20 21 22 |
# File 'lib/cantango/helpers/role_methods.rb', line 20 def config CanTango.config end |
#has_role_group_meth ⇒ Object
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_meth ⇒ Object
4 5 6 |
# File 'lib/cantango/helpers/role_methods.rb', line 4 def has_role_meth config.roles.has_method end |
#role_groups_list_meth ⇒ Object
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_meth ⇒ Object
16 17 18 |
# File 'lib/cantango/helpers/role_methods.rb', line 16 def roles_list_meth config.roles.list_method end |