Module: TroleGroups::Strategy::BaseMany
- Defined in:
- lib/trole_groups/strategy.rb
Class Method Summary collapse
-
.included(base) ⇒ Object
a Many role strategy is included by a role subject (fx a UserAccount class) a Many role strategy should always include BaseMany when BaseMany is included, it ensures that the complete Troles API is also included into the role subject.
Instance Method Summary collapse
-
#group_store ⇒ Troles::Storage
The storage to use.
Class Method Details
.included(base) ⇒ Object
Note:
the Trole::Api also includes the Troles::Common::Api
a Many role strategy is included by a role subject (fx a UserAccount class) a Many role strategy should always include BaseMany when BaseMany is included, it ensures that the complete Troles API is also included into the role subject
18 19 20 |
# File 'lib/trole_groups/strategy.rb', line 18 def self.included(base) base.send :include, TroleGroups::Api end |
Instance Method Details
#group_store ⇒ Troles::Storage
The storage to use
24 25 26 |
# File 'lib/trole_groups/strategy.rb', line 24 def group_store @group_store ||= group_storage.new self end |