instance method
changes_applied
Ruby on Rails 7.2.3
Since v4.1.16Signature
changes_applied()
Clears dirty data and moves changes to previous_changes and mutations_from_database to mutations_before_last_save respectively.
Source
# File activemodel/lib/active_model/dirty.rb, line 265
def changes_applied
unless defined?(@attributes)
mutations_from_database.finalize_changes
end
@mutations_before_last_save = mutations_from_database
forget_attribute_assignments
@mutations_from_database = nil
end
Defined in activemodel/lib/active_model/dirty.rb line 265
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Dirty