changes_to_save()
Returns a hash containing all the changes that will be persisted during the next save.
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 175 def changes_to_save mutations_from_database.changes end