Method: CIA::Event#add_attribute_changes
- Defined in:
- lib/cia/event.rb
#add_attribute_changes(changes) ⇒ Object
tested via transaction_test.rb
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/cia/event.rb', line 22 def add_attribute_changes(changes) changes.each do |attribute_name, (old_value, new_value)| attribute_changes.build( :event => self, :attribute_name => attribute_name, :old_value => old_value, :new_value => new_value, :source => source ) end end |