From 294219226175f8d17fb0348ceaba51caa5936ec3 Mon Sep 17 00:00:00 2001 From: Vitor Balocco Date: Thu, 5 Jul 2012 18:59:42 +0300 Subject: Add documentation for inheritance_column method --- activerecord/lib/active_record/model.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/model.rb b/activerecord/lib/active_record/model.rb index 7b3d926d91..0015e3a567 100644 --- a/activerecord/lib/active_record/model.rb +++ b/activerecord/lib/active_record/model.rb @@ -103,7 +103,9 @@ module ActiveRecord 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 -- cgit v1.2.3