instance method
attribute_change
Ruby on Rails 3.1.12
Since v3.0.20 PrivateSignature
attribute_change(attr)
Handle *_change for method_missing.
Parameters
-
attrreq
Source
# File activemodel/lib/active_model/dirty.rb, line 142
def attribute_change(attr)
[changed_attributes[attr], __send__(attr)] if attribute_changed?(attr)
end
Defined in activemodel/lib/active_model/dirty.rb line 142
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Dirty