Method: ActiveRecord::AttributeMethods::Dirty#changes_to_save
- Defined in:
- lib/active_record/attribute_methods/dirty.rb
#changes_to_save ⇒ Object
Returns a hash containing all the changes that will be persisted during the next save.
175 176 177 |
# File 'lib/active_record/attribute_methods/dirty.rb', line 175 def changes_to_save mutations_from_database.changes end |