Permalink
Browse files

Merge pull request #6976 from vitorbal/master

Add documentation for inheritance_column method [ci skip]
  • Loading branch information...
2 parents cb8ac7d + 2942192 commit 6d0394ca28d68317d6119f28e9e07f48e6e5f50c @carlosantoniodasilva carlosantoniodasilva committed Jul 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 activerecord/lib/active_record/model.rb
@@ -103,7 +103,9 @@ def arel_engine
def abstract_class?
false
end
-
+
+ # Defines the name of the table column which will store the class name on single-table
+ # inheritance situations.
def inheritance_column
'type'
end

0 comments on commit 6d0394c

Please sign in to comment.