aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJack Danger Canty <git@6brand.com>2008-05-06 23:39:47 -0700
committerJack Danger Canty <git@6brand.com>2008-05-06 23:39:47 -0700
commitb243de0db3c2605121e055079854af5090d06374 (patch)
tree9aeb7c7a39db73aac2a6a458d8e7c58ff744a1fc /activerecord
parentf81d771f0657ae8375b84a77a059812cce5d6fd9 (diff)
downloadrails-b243de0db3c2605121e055079854af5090d06374.tar.gz
rails-b243de0db3c2605121e055079854af5090d06374.tar.bz2
rails-b243de0db3c2605121e055079854af5090d06374.zip
doc: disambiguating an example ActiveRecord class
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/reflection.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index 811e53c428..50cdcd3e2e 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -179,7 +179,8 @@ module ActiveRecord
# Gets the source of the through reflection. It checks both a singularized and pluralized form for <tt>:belongs_to</tt> or <tt>:has_many</tt>.
# (The <tt>:tags</tt> association on Tagging below.)
#
- # class Post
+ # class Post < ActiveRecord::Base
+ # has_many :taggings
# has_many :tags, :through => :taggings
# end
#