method
changes
v7.1.3.4 -
Show latest stable
- Class:
ActiveModel::AttributeMutationTracker
changes()public
No documentation available.
# File activemodel/lib/active_model/attribute_mutation_tracker.rb, line 26
def changes
attr_names.each_with_object({}.with_indifferent_access) do |attr_name, result|
if change = change_to_attribute(attr_name)
result.merge!(attr_name => change)
end
end
end