instance method
attribute_change_to_be_saved
Ruby on Rails 5.2.8.1
Since v5.2.8.1Signature
attribute_change_to_be_saved(attr_name)
Alias for attribute_change
Parameters
-
attr_namereq
Source
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 93
def attribute_change_to_be_saved(attr_name)
mutations_from_database.change_to_attribute(attr_name)
end
Defined in activerecord/lib/active_record/attribute_methods/dirty.rb line 93
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::Dirty