aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-12-07 23:20:11 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-12-07 23:20:11 +0000
commit42634907282de4f732be4618beb2b9a1ea10f640 (patch)
tree7edf10c9a6c4f9f88eb58fd70c8b00178cab1202 /activerecord
parent60936c5c84b974b7d0f7cbc51362b037064d2ab7 (diff)
downloadrails-42634907282de4f732be4618beb2b9a1ea10f640.tar.gz
rails-42634907282de4f732be4618beb2b9a1ea10f640.tar.bz2
rails-42634907282de4f732be4618beb2b9a1ea10f640.zip
Fix has_many :through
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/has_many_through_association.rb1
1 files changed, 1 insertions, 0 deletions
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],