method
attribute_names
v4.0.2 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods
attribute_names()public
Returns an array of names for the attributes available on this object.
class Person < ActiveRecord::Base end person = Person.new person.attribute_names # => ["id", "created_at", "updated_at", "name", "age"]