diff options
author | Vitor Balocco <vitorbal@gmail.com> | 2012-07-05 18:59:42 +0300 |
---|---|---|
committer | Vitor Balocco <vitorbal@gmail.com> | 2012-07-05 18:59:42 +0300 |
commit | 294219226175f8d17fb0348ceaba51caa5936ec3 (patch) | |
tree | a1d815b8feb3b7c27238e705e7457d66c5ba7d0f /activerecord | |
parent | cb8ac7d377746e39cc512bb0fbfc6a667e91c0cd (diff) | |
download | rails-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.rb | 4 |
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 |