aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-07-05 09:21:36 -0700
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-07-05 09:21:36 -0700
commit6d0394ca28d68317d6119f28e9e07f48e6e5f50c (patch)
treea1d815b8feb3b7c27238e705e7457d66c5ba7d0f
parentcb8ac7d377746e39cc512bb0fbfc6a667e91c0cd (diff)
parent294219226175f8d17fb0348ceaba51caa5936ec3 (diff)
downloadrails-6d0394ca28d68317d6119f28e9e07f48e6e5f50c.tar.gz
rails-6d0394ca28d68317d6119f28e9e07f48e6e5f50c.tar.bz2
rails-6d0394ca28d68317d6119f28e9e07f48e6e5f50c.zip
Merge pull request #6976 from vitorbal/master
Add documentation for inheritance_column method [ci skip]
-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