instance method
attribute_will_change!
Ruby on Rails edge
Since v3.0.20 Private — implementation detail, not part of the public APISignature
attribute_will_change!(attr_name)
Dispatch target for ‘*_will_change!` attribute methods.
Parameters
-
attr_namereq
Source
# File activemodel/lib/active_model/dirty.rb, line 473
def attribute_will_change!(attr_name)
attr_name = attr_name.name if attr_name.is_a?(Symbol)
mutations_from_database.force_change(attr_name.to_s)
end
Defined in activemodel/lib/active_model/dirty.rb line 473
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Dirty