instance method
will_save_change_to_attribute?
Ruby on Rails 5.2.8.1
Since v5.2.8.1Signature
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 88
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 88
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::Dirty