method
cache_changed_attributes
v4.2.1 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::Dirty
cache_changed_attributes()private
No documentation available.
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 177
def cache_changed_attributes
@cached_changed_attributes = changed_attributes
yield
ensure
remove_instance_variable(:@cached_changed_attributes)
end