aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-05-18 21:51:21 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-05-18 21:51:21 +0000
commit0f2fd5ab517bfab37995eae668c5549eafdcc6ce (patch)
tree38c9b40c22c67b471b79490951147dd446daddf1 /activerecord/lib
parent4221494348f06b0c44446a44571c8ad8b74e1da6 (diff)
downloadrails-0f2fd5ab517bfab37995eae668c5549eafdcc6ce.tar.gz
rails-0f2fd5ab517bfab37995eae668c5549eafdcc6ce.tar.bz2
rails-0f2fd5ab517bfab37995eae668c5549eafdcc6ce.zip
belongs_to doesn't go :through. Closes #4961.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-xactiverecord/lib/active_record/associations.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 56fe19a1db..85696505ab 100755
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -600,8 +600,7 @@ module ActiveRecord
# include the joined columns.
# * <tt>:as</tt>: Specifies a polymorphic interface (See #belongs_to).
# * <tt>:through</tt>: Specifies a Join Model to perform the query through. Options for <tt>:class_name</tt> and <tt>:foreign_key</tt>
- # are ignored, as the association uses the source reflection. You can only use a <tt>:through</tt> query through a <tt>belongs_to</tt>
- # or <tt>has_many</tt> association.
+ # are ignored, as the association uses the source reflection.
# * <tt>:source</tt>: Specifies the source association name used by <tt>has_many :through</tt> queries. Only use it if the name cannot be
# inferred from the association. <tt>has_many :subscribers, :through => :subscriptions</tt> will look for either +:subscribers+ or
# +:subscriber+ on +Subscription+, unless a +:source+ is given.