instance method
clear_changes_information
Ruby on Rails 5.2.8.1
Since v4.2.9Signature
clear_changes_information()
Clears all dirty data: current changes and previous changes.
Source
# File activemodel/lib/active_model/dirty.rb, line 197
def clear_changes_information
@previously_changed = ActiveSupport::HashWithIndifferentAccess.new
@mutations_before_last_save = nil
@attributes_changed_by_setter = ActiveSupport::HashWithIndifferentAccess.new
forget_attribute_assignments
@mutations_from_database = nil
end
Defined in activemodel/lib/active_model/dirty.rb line 197
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Dirty