instance method
saved_changes
Ruby on Rails 6.0.6
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 83
def saved_changes
mutations_before_last_save.changes
end
Defined in activerecord/lib/active_record/attribute_methods/dirty.rb line 83
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::Dirty