aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/has_many_through_association.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2007-11-21 01:51:57 +0000
committerMichael Koziarski <michael@koziarski.com>2007-11-21 01:51:57 +0000
commit7d459203eedc32f1a88e98acc4b2a4f32a7683f4 (patch)
tree3e33990806b45749ba84ea22acc4f722bb16a5ea /activerecord/lib/active_record/associations/has_many_through_association.rb
parentcf1217a742d1177fee38e4add2acc2f210a8ee7f (diff)
downloadrails-7d459203eedc32f1a88e98acc4b2a4f32a7683f4.tar.gz
rails-7d459203eedc32f1a88e98acc4b2a4f32a7683f4.tar.bz2
rails-7d459203eedc32f1a88e98acc4b2a4f32a7683f4.zip
Make Dynamic Finders on Association Collections Respect Association :order [patrick.t.joyce, technoweenie]. Closes #10211
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/associations/has_many_through_association.rb')
-rw-r--r--activerecord/lib/active_record/associations/has_many_through_association.rb3
1 files changed, 2 insertions, 1 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 8bff88e839..a9cacb09c8 100644
--- a/activerecord/lib/active_record/associations/has_many_through_association.rb
+++ b/activerecord/lib/active_record/associations/has_many_through_association.rb
@@ -235,7 +235,8 @@ module ActiveRecord
:find => { :from => construct_from,
:conditions => construct_conditions,
:joins => construct_joins,
- :select => construct_select } }
+ :select => construct_select,
+ :order => @reflection.options[:order] } }
end
def construct_sql