activemodel/lib/active_model/dirty.rb
# Clears all dirty data: current changes and previous changes.
Clears all dirty data: current changes and previous changes.
Clears all dirty data : current changes and previous changes .
def clear_changes_information
      @mutations_before_last_save = nil
      forget_attribute_assignments
      @mutations_from_database = nil
    end
def clear_changes_information @mutations_before_last_save = nil forget_attribute_assignments @mutations_from_database = nil end
Clears all dirty data: current changes and previous changes.
Clears all dirty data : current changes and previous changes .