attribute_names()
Returns an array of names for the attributes available on this object.
# File activerecord/lib/active_record/attribute_methods.rb, line 155 def attribute_names @attributes.keys end