instance method
changes_include?
Ruby on Rails 5.1.7
Since v4.2.11.3 Last seen in v5.2.8.1 Private — implementation detail, not part of the public APISignature
changes_include?(attr_name)
Returns true if attr_name is changed, false otherwise.
Parameters
-
attr_namereq
Source
# File activemodel/lib/active_model/dirty.rb, line 204
def changes_include?(attr_name)
attributes_changed_by_setter.include?(attr_name)
end
Defined in activemodel/lib/active_model/dirty.rb line 204
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Dirty