From 812469943cc6eddc132d137a0d5929b2c5d0346f Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Wed, 3 Apr 2013 23:39:09 -0400 Subject: has_many through obeys order on through association fixes #10016 --- activerecord/lib/active_record/associations/association_scope.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib/active_record/associations/association_scope.rb') diff --git a/activerecord/lib/active_record/associations/association_scope.rb b/activerecord/lib/active_record/associations/association_scope.rb index a9525436fb..b62a16ea3f 100644 --- a/activerecord/lib/active_record/associations/association_scope.rb +++ b/activerecord/lib/active_record/associations/association_scope.rb @@ -101,6 +101,7 @@ module ActiveRecord scope.includes! item.includes_values scope.where_values += item.where_values + scope.order_values += (item.order_values - scope.order_values) end end -- cgit v1.2.3