module TroleGroups::Strategy::BaseMany
Public Class Methods
included(base)
click to toggle source
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
@note the Trole::Api
also includes the Troles::Common::Api
@param [Class] the role subject class for which to include the Role strategy (fx User Account)
# File lib/trole_groups/strategy.rb, line 18 def self.included(base) base.send :include, TroleGroups::Api end
Public Instance Methods
group_store()
click to toggle source
The storage to use @return [Troles::Storage] a storage subclass instance matching the needs of the strategy
# File lib/trole_groups/strategy.rb, line 24 def group_store @group_store ||= group_storage.new self end