aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-22 03:46:32 -0700
committerJosé Valim <jose.valim@gmail.com>2011-05-22 03:46:32 -0700
commitc932539c5b473eff29fcfb400c7440ddd882be7d (patch)
tree6aafe0572f7caf8cbd929c9080ad744cc5e1d504
parent82857adc56efd16d22821971fff4c5e24a3c5b55 (diff)
parent6e5419a0b161a8e62bc347cda03c4ee142b83d20 (diff)
downloadrails-c932539c5b473eff29fcfb400c7440ddd882be7d.tar.gz
rails-c932539c5b473eff29fcfb400c7440ddd882be7d.tar.bz2
rails-c932539c5b473eff29fcfb400c7440ddd882be7d.zip
Merge pull request #1198 from guilleiguaran/changelog_pluralize_table_names
Adding pluralize_table_names change to CHANGELOG
-rw-r--r--activerecord/CHANGELOG8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 502a7e43de..b05d3970c7 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,13 @@
*Rails 3.1.0 (unreleased)*
+* AR#pluralize_table_names can be used to singularize/pluralize table name of an individual model:
+
+ class User < ActiveRecord::Base
+ self.pluralize_table_names = false
+ end
+
+ Previously this could only be set globally for all models through ActiveRecord::Base.pluralize_table_names. [Guillermo Iguaran]
+
* Add block setting of attributes to singular associations:
class User < ActiveRecord::Base