Module: Akasha::SyntaxHelpers::InstanceMethods

Defined in:
lib/akasha/aggregate/syntax_helpers.rb

Overview

Aggregate instance methods.

Instance Method Summary collapse

Instance Method Details

#save!(concurrency: :none) ⇒ Object

Saves the aggregate.



40
41
42
43
44
# File 'lib/akasha/aggregate/syntax_helpers.rb', line 40

def save!(concurrency: :none)
  return if changeset.empty?
  self.class.repository.save_aggregate(self, concurrency: concurrency)
  changeset.clear!
end