Module: TroleGroups::Api::Core::ClassMethods

Defined in:
lib/trole_groups/api/core.rb

Instance Method Summary collapse

Instance Method Details

#rolegroup_fieldObject



27
28
29
# File 'lib/trole_groups/api/core.rb', line 27

def rolegroup_field
  trolegroups_config.rolegroup_field
end

#static_roles?true, false

Note:

Should also proxy Config object?

If all role subjects using this strategy should have static (immutable) roles

Returns:

  • (true, false)

    if role subjects have static roles or not (default: false)



45
46
47
# File 'lib/trole_groups/api/core.rb', line 45

def static_roles?
  false # trolegroups_config.static_roles?
end

#valid_rolegroupsObject



31
32
33
# File 'lib/trole_groups/api/core.rb', line 31

def valid_rolegroups
  trolegroups_config.valid_roles
end