aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorVitor Balocco <vitorbal@gmail.com>2012-07-05 18:59:42 +0300
committerVitor Balocco <vitorbal@gmail.com>2012-07-05 18:59:42 +0300
commit294219226175f8d17fb0348ceaba51caa5936ec3 (patch)
treea1d815b8feb3b7c27238e705e7457d66c5ba7d0f /activerecord
parentcb8ac7d377746e39cc512bb0fbfc6a667e91c0cd (diff)
downloadrails-294219226175f8d17fb0348ceaba51caa5936ec3.tar.gz
rails-294219226175f8d17fb0348ceaba51caa5936ec3.tar.bz2
rails-294219226175f8d17fb0348ceaba51caa5936ec3.zip
Add documentation for inheritance_column method
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/model.rb4
1 files changed, 3 insertions, 1 deletions
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