Method: Dynamoid::Dirty#clear_changes_information
- Defined in:
- lib/dynamoid/dirty.rb
#clear_changes_information ⇒ Object
Clear all dirty data: current changes and previous changes.
142 143 144 145 146 |
# File 'lib/dynamoid/dirty.rb', line 142 def clear_changes_information @previously_changed = ActiveSupport::HashWithIndifferentAccess.new @attributes_changed_by_setter = ActiveSupport::HashWithIndifferentAccess.new @attributes_from_database = HashWithIndifferentAccess.new(DeepDupper.dup_attributes(@attributes, self.class)) end |