Module: TroleGroups::Api::Core::ClassMethods
- Defined in:
- lib/trole_groups/api/core.rb
Instance Method Summary collapse
- #rolegroup_field ⇒ Object
-
#static_roles? ⇒ true, false
If all role subjects using this strategy should have static (immutable) roles.
- #valid_rolegroups ⇒ Object
Instance Method Details
#rolegroup_field ⇒ Object
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
45 46 47 |
# File 'lib/trole_groups/api/core.rb', line 45 def static_roles? false # trolegroups_config.static_roles? end |
#valid_rolegroups ⇒ Object
31 32 33 |
# File 'lib/trole_groups/api/core.rb', line 31 def valid_rolegroups trolegroups_config.valid_roles end |