module AggregateRoot::Constructor
Public Instance Methods
new(*)
click to toggle source
Calls superclass method
# File lib/aggregate_root.rb, line 35 def new(*) super.tap do |instance| instance.instance_variable_set(:@version, -1) instance.instance_variable_set(:@unpublished_events, []) end end