instance method
will_save_change_to_attribute?
Ruby on Rails 5.1.7
Since v5.1.7Signature
will_save_change_to_attribute?(attr_name, **options)
Alias for attribute_changed?
Parameters
-
attr_namereq -
optionskeyrest
Source
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 181
def will_save_change_to_attribute?(attr_name, **options)
mutations_from_database.changed?(attr_name, **options)
end
Defined in activerecord/lib/active_record/attribute_methods/dirty.rb line 181
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::Dirty