Permalink
Browse files

Better docs for overriding inheretance column

  • Loading branch information...
1 parent 7e538e8 commit fe78e1dad6af88a08715abcad0e6e4e2d5c9b262 @steveklabnik steveklabnik committed Sep 22, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 activerecord/lib/active_record/model.rb
@@ -108,12 +108,9 @@ def abstract_class?
# 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

0 comments on commit fe78e1d

Please sign in to comment.