Method: ActiveModel::Dirty#attribute_changed?

Defined in:
activemodel/lib/active_model/dirty.rb

#attribute_changed?(attr_name, **options) ⇒ Boolean

Dispatch target for *_changed? attribute methods.

Returns:

  • (Boolean)


300
301
302
# 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