From 9f51eb24724df1e7c1bef004111ab4faca717378 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 23 May 2007 06:35:08 +0000 Subject: Fix :through docs wrecked up by [6777]. Closes #4961. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/associations.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index c72024d5f3..0e8a48f2a0 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -608,7 +608,8 @@ module ActiveRecord # include the joined columns. # * :as: Specifies a polymorphic interface (See #belongs_to). # * :through: Specifies a Join Model to perform the query through. Options for :class_name and :foreign_key - # are ignored, as the association uses the source reflection. + # are ignored, as the association uses the source reflection. You can only use a :through query through a belongs_to + # or has_many association on the join model. # * :source: Specifies the source association name used by has_many :through queries. Only use it if the name cannot be # inferred from the association. has_many :subscribers, :through => :subscriptions will look for either +:subscribers+ or # +:subscriber+ on +Subscription+, unless a +:source+ is given. -- cgit v1.2.3