instance method
attribute_method?
Ruby on Rails 7.1.6
Since v3.0.20 PrivateSignature
attribute_method?(attr_name)
No documentation comment.
Parameters
-
attr_namereq
Source
# File activemodel/lib/active_model/attribute_methods.rb, line 542
def attribute_method?(attr_name)
respond_to_without_attributes?(:attributes) && attributes.include?(attr_name)
end
Defined in activemodel/lib/active_model/attribute_methods.rb line 542
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::AttributeMethods