instance method
changes_to_save
Ruby on Rails 7.2.3
Since v5.2.8.1Signature
changes_to_save()
Returns a hash containing all the changes that will be persisted during the next save.
Source
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 175
def changes_to_save
mutations_from_database.changes
end
Defined in activerecord/lib/active_record/attribute_methods/dirty.rb line 175
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::Dirty