instance method
saved_changes
Ruby on Rails 7.0.10
Since v5.2.8.1Signature
saved_changes()
Returns a hash containing all the changes that were just saved.
Source
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 112
def saved_changes
mutations_before_last_save.changes
end
Defined in activerecord/lib/active_record/attribute_methods/dirty.rb line 112
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::Dirty