method
changes
v8.1.1 -
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(ActiveSupport::HashWithIndifferentAccess.new) do |attr_name, result|
if change = change_to_attribute(attr_name)
result.store(attr_name, change, convert_value: false)
end
end
end