method
attribute_names
v3.2.8 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::ClassMethods
attribute_names()public
Returns an array of column names as strings if it’s not an abstract class and table exists. Otherwise it returns an empty array.