instance method
attribute_method?
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
attribute_method?(attr_name)
No documentation comment.
Parameters
-
attr_namereq
Source
# File activemodel/lib/active_model/attributes.rb, line 183
def attribute_method?(attr_name)
@attributes&.key?(attr_name)
end
Defined in activemodel/lib/active_model/attributes.rb line 183
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Attributes