diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-16 16:56:30 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-16 16:56:30 +0000 |
commit | f033833fb9f48927995e8bc521ae032888813989 (patch) | |
tree | 6b644dfb4e4153d2b57991cb561adb72d4034cc5 /activerecord/lib/active_record/base.rb | |
parent | 6860db61f516b813af624d38b47fef0bf983539c (diff) | |
download | rails-f033833fb9f48927995e8bc521ae032888813989.tar.gz rails-f033833fb9f48927995e8bc521ae032888813989.tar.bz2 rails-f033833fb9f48927995e8bc521ae032888813989.zip |
Improving documentation...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index f6233e5989..ca586aacad 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -130,6 +130,9 @@ module ActiveRecord #:nodoc: # When you do Firm.create("name" => "37signals"), this record with be saved in the companies table with type = "Firm". You can then # fetch this row again using Company.find_first "name = '37signals'" and it will return a Firm object. # + # If you don't have a type column defined in your table, single-table inheritance won't be triggered. In that case, it'll work just + # like normal subclasses with no special magic for differentiating between them or reloading the right type with find. + # # Note, all the attributes for all the cases are kept in the same table. Read more: # http://www.martinfowler.com/eaaCatalog/singleTableInheritance.html # |