Method: ActiveRecord::AttributeMethods#attribute_names

Defined in:
lib/active_record/attribute_methods.rb

#attribute_namesObject

Returns an array of names for the attributes available on this object.



158
159
160
# File 'lib/active_record/attribute_methods.rb', line 158

def attribute_names
  @attributes.keys
end