From 42634907282de4f732be4618beb2b9a1ea10f640 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 7 Dec 2005 23:20:11 +0000 Subject: Fix has_many :through git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/active_record/associations/has_many_through_association.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib/active_record/associations') diff --git a/activerecord/lib/active_record/associations/has_many_through_association.rb b/activerecord/lib/active_record/associations/has_many_through_association.rb index ca4496b32e..f9020ebcad 100644 --- a/activerecord/lib/active_record/associations/has_many_through_association.rb +++ b/activerecord/lib/active_record/associations/has_many_through_association.rb @@ -37,6 +37,7 @@ module ActiveRecord def find_target @reflection.klass.find(:all, + :select => "#{@reflection.table_name}.*", :conditions => construct_conditions, :from => construct_from, :order => @reflection.options[:order], -- cgit v1.2.3