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