aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikachu.com>2011-05-15 14:19:09 -0400
committerPrem Sichanugrist <s@sikachu.com>2011-05-15 19:07:40 -0400
commit5ca67eca21d2adfb418f96b63e7d3de237737a1e (patch)
treecda804ef476e426d94f5410df63d34abe3af935b /activerecord/CHANGELOG
parentdde82a44d702f8416905476bbea5842157d6a508 (diff)
downloadrails-5ca67eca21d2adfb418f96b63e7d3de237737a1e.tar.gz
rails-5ca67eca21d2adfb418f96b63e7d3de237737a1e.tar.bz2
rails-5ca67eca21d2adfb418f96b63e7d3de237737a1e.zip
Add ActiveRecord::attribute_names to retrieve a list of attribute names. This method will also return an empty array on an abstract class or a model that the table doesn't exists.
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 32bcf02139..2e144745cd 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,7 @@
*Rails 3.1.0 (unreleased)*
+* Add ActiveRecord::Base.attribute_names to return a list of attribute names. This will return an empty array if the model is abstract or table does not exists. [Prem Sichanugrist]
+
* CSV Fixtures are deprecated and support will be removed in Rails 3.2.0
* AR#new, AR#create, AR#create!, AR#update_attributes and AR#update_attributes! all accept a second hash as option that allows you