Method: ActiveRecord::AttributeMethods::ClassMethods#_has_attribute?

Defined in:
activerecord/lib/active_record/attribute_methods.rb

#_has_attribute?(attr_name) ⇒ Boolean

:nodoc:

Returns:

  • (Boolean)


260
261
262
# File 'activerecord/lib/active_record/attribute_methods.rb', line 260

def _has_attribute?(attr_name) # :nodoc:
  attribute_types.key?(attr_name)
end