Module: CanTango::Ability::Helper::RoleGroup
- Includes:
- Helpers::RoleGroup
- Defined in:
- lib/cantango/roles_ext/ability/helper/role_group.rb
Instance Method Summary collapse
-
#role_groups ⇒ Object
return list of symbols for role groups the user belongs to.
Methods included from Helpers::RoleGroup
Instance Method Details
#role_groups ⇒ Object
return list of symbols for role groups the user belongs to
6 7 8 9 |
# File 'lib/cantango/roles_ext/ability/helper/role_group.rb', line 6 def role_groups return [] if !subject.respond_to?(role_groups_list_meth) || role_groups_of(subject).blank? role_groups_of(subject).flatten end |