aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/model.rb
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2012-09-22 06:31:14 +0300
committerSteve Klabnik <steve@steveklabnik.com>2012-09-22 06:31:38 +0300
commitfe78e1dad6af88a08715abcad0e6e4e2d5c9b262 (patch)
tree98c55959bab45c8d14f1f8bc6798f1ddc72d84e7 /activerecord/lib/active_record/model.rb
parent7e538e81541f4c756cf465d7240b85cfe290676a (diff)
downloadrails-fe78e1dad6af88a08715abcad0e6e4e2d5c9b262.tar.gz
rails-fe78e1dad6af88a08715abcad0e6e4e2d5c9b262.tar.bz2
rails-fe78e1dad6af88a08715abcad0e6e4e2d5c9b262.zip
Better docs for overriding inheretance column
Diffstat (limited to 'activerecord/lib/active_record/model.rb')
-rw-r--r--activerecord/lib/active_record/model.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/model.rb b/activerecord/lib/active_record/model.rb
index 16d9d404e3..f059840f4d 100644
--- a/activerecord/lib/active_record/model.rb
+++ b/activerecord/lib/active_record/model.rb
@@ -108,12 +108,9 @@ module ActiveRecord
# The default inheritance column name is +type+, which means it's a
# reserved word inside Active Record. To be able to use single-table
# inheritance with another column name, or to use the column +type+ in
- # your own model for something else, you can override this method to
- # return a different name:
+ # your own model for something else, you can set +inheritance_column+:
#
- # def self.inheritance_column
- # 'zoink'
- # end
+ # self.inheritance_column = 'zoink'
def inheritance_column
'type'
end