method
changes
rails latest stable - Class:
ActiveRecord::AttributeMutationTracker
changes()public
No documentation available.
# File activerecord/lib/active_record/attribute_mutation_tracker.rb, line 23
def changes
attr_names.each_with_object({}.with_indifferent_access) do |attr_name, result|
change = change_to_attribute(attr_name)
if change
result.merge!(attr_name => change)
end
end
end