method
changed_attributes
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::Dirty
changed_attributes()public
No documentation available.
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 77
def changed_attributes
# This should only be set by methods which will call changed_attributes
# multiple times when it is known that the computed value cannot change.
if defined?(@cached_changed_attributes)
@cached_changed_attributes
else
super.reverse_merge(mutation_tracker.changed_values).freeze
end
end