instance method
attribute_changed?
Ruby on Rails 8.1.2
Since v3.0.20Signature
attribute_changed?(attr_name, **options)
Dispatch target for *_changed? attribute methods.
Parameters
-
attr_namereq -
optionskeyrest
Source
# File activemodel/lib/active_model/dirty.rb, line 300
def attribute_changed?(attr_name, **options)
mutations_from_database.changed?(attr_name.to_s, **options)
end
Defined in activemodel/lib/active_model/dirty.rb line 300
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Dirty