attribute_method?(attribute)
Instance Public methods
Returns true
if attribute
is an attribute method,
false
otherwise.
class Person include ActiveModel::Validations attr_accessor :name end User.attribute_method?(:name) # => true User.attribute_method?(:age) # => false
Please login to continue.