aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-11-29 15:34:22 +0000
committerJon Leighton <j@jonathanleighton.com>2011-11-29 20:13:36 +0000
commit34609d67b442366644945a95b019daf5b474727b (patch)
tree83172d72312d7f12cdcc99fc9402890879012403 /activerecord/CHANGELOG.md
parent0b72a04d0c93b666c23500aefbe4a6a76593cd36 (diff)
downloadrails-34609d67b442366644945a95b019daf5b474727b.tar.gz
rails-34609d67b442366644945a95b019daf5b474727b.tar.bz2
rails-34609d67b442366644945a95b019daf5b474727b.zip
Deprecate set_inheritance_column in favour of self.inheritance_column=
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 2d15b04334..2e226cc55f 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,12 +1,18 @@
## Rails 3.2.0 (unreleased) ##
-* Deprecated `set_table_name`. Use `self.table_name=` instead, or define your own
- `self.table_name` method:
+* Deprecated:
+
+ * `set_table_name`
+ * `set_inheritance_column`
+
+ Use an assignment method instead. For example, instead of `set_table_name`, use `self.table_name=`:
class Project < ActiveRecord::Base
self.table_name = "project"
end
+ Or define your own `self.table_name` method:
+
class Post < ActiveRecord::Base
def self.table_name
"special_" + super