Permalink
Browse files

Add documentation for inheritance_column method

  • Loading branch information...
1 parent cb8ac7d commit 294219226175f8d17fb0348ceaba51caa5936ec3 @vitorbal vitorbal 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 2942192

Please sign in to comment.