Module: CanTango::Ability::Helper::RoleGroup

Includes:
Helpers::RoleGroup
Defined in:
lib/cantango/roles_ext/ability/helper/role_group.rb

Instance Method Summary collapse

Methods included from Helpers::RoleGroup

#config, #role_group_method

Instance Method Details

#role_groupsObject

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