module Akasha::SyntaxHelpers
Adds syntax sugar to aggregates.
Initialize using the `connect!` method:
repository = Akasha::Repository.new(Akasha::Storage::MemoryEventStore.new) Aggregate.connect!(repository)
Example usage:
item = Item.find_or_create('item-1') ... modify item .. item.save!
Public Class Methods
included(base)
click to toggle source
# File lib/akasha/aggregate/syntax_helpers.rb, line 14 def self.included(base) base.include(InstanceMethods) base.extend(ClassMethods) end