instance method
previous_changes_include?
Ruby on Rails 5.2.8.1
Since v5.2.8.1 Last seen in v5.2.8.1 PrivateSignature
previous_changes_include?(attr_name)
Returns true if attr_name were changed before the model was saved, false otherwise.
Parameters
-
attr_namereq
Source
# File activemodel/lib/active_model/dirty.rb, line 298
def previous_changes_include?(attr_name)
previous_changes.include?(attr_name)
end
Defined in activemodel/lib/active_model/dirty.rb line 298
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Dirty