From 6636eb16c56a8a44be8fb3ec005cfca52b0b5b4c Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Sun, 26 Mar 2006 00:36:55 +0000 Subject: Fixed issue that kept :select options from being scoped [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/active_record/associations/has_many_through_association.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/associations/has_many_through_association.rb') 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 104ed5ba58..dafae89861 100644 --- a/activerecord/lib/active_record/associations/has_many_through_association.rb +++ b/activerecord/lib/active_record/associations/has_many_through_association.rb @@ -106,7 +106,7 @@ module ActiveRecord def construct_scope { - :find => { :from => construct_from, :conditions => construct_conditions, :joins => construct_joins }, + :find => { :from => construct_from, :conditions => construct_conditions, :joins => construct_joins, :select => construct_select }, :create => { @reflection.primary_key_name => @owner.id } } end -- cgit v1.2.3