Class: CIA::Event
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- CIA::Event
- Defined in:
- lib/cia/event.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#record_attribute_changes!(changes) ⇒ Object
tested via transaction_test.rb.
Instance Method Details
#record_attribute_changes!(changes) ⇒ Object
tested via transaction_test.rb
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/cia/event.rb', line 13 def record_attribute_changes!(changes) changes.each do |attribute_name, (old_value, new_value)| attribute_changes.create!( :attribute_name => attribute_name, :old_value => old_value, :new_value => new_value, :source => source ) end end |