instance method
saved_changes
Ruby on Rails edge
Since v5.1.7Signature
saved_changes()
Returns a hash containing all the changes that were just saved. : () -> (ActiveSupport::HashWithIndifferentAccess | Hash[String, [ untyped, untyped ]])
Source
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 130
def saved_changes
mutations_before_last_save.changes
end
Defined in activerecord/lib/active_record/attribute_methods/dirty.rb line 130
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::Dirty