Module: Akasha::SyntaxHelpers::InstanceMethods

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

Overview

Aggregate instance methods.

Instance Method Summary collapse

Instance Method Details

#save!Object

Saves the aggregate.


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

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