aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-10-20 15:30:38 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-10-20 15:30:38 -0200
commit2ba92bb8090b676b664c793f45cbe40e51cb1832 (patch)
treeba9fe49dc5ff7dd9f53f82520d724375dba85369 /activerecord/lib
parentd68e81afa0e5b2697755a34e9b1d11b9b5d1df9d (diff)
parent209f3b30af1beffbf1cd2fd933c3453661239b07 (diff)
downloadrails-2ba92bb8090b676b664c793f45cbe40e51cb1832.tar.gz
rails-2ba92bb8090b676b664c793f45cbe40e51cb1832.tar.bz2
rails-2ba92bb8090b676b664c793f45cbe40e51cb1832.zip
Merge branch 'fix-21955'
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/associations/association_scope.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/association_scope.rb b/activerecord/lib/active_record/associations/association_scope.rb
index a140dc239c..48437a1c9e 100644
--- a/activerecord/lib/active_record/associations/association_scope.rb
+++ b/activerecord/lib/active_record/associations/association_scope.rb
@@ -147,9 +147,9 @@ module ActiveRecord
scope.includes! item.includes_values
end
+ scope.unscope!(*item.unscope_values)
scope.where_clause += item.where_clause
scope.order_values |= item.order_values
- scope.unscope!(*item.unscope_values)
end
reflection = reflection.next