Method: ActiveModel::AttributeMutationTracker#changed_values
- Defined in:
- activemodel/lib/active_model/attribute_mutation_tracker.rb
#changed_values ⇒ Object
18 19 20 21 22 23 24 |
# File 'activemodel/lib/active_model/attribute_mutation_tracker.rb', line 18 def changed_values attr_names.each_with_object({}.with_indifferent_access) do |attr_name, result| if changed?(attr_name) result[attr_name] = original_value(attr_name) end end end |