diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-11 15:13:04 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-11 15:13:04 -0700 |
commit | de9e9bbbada37626ae32aadc1ae6055b61452817 (patch) | |
tree | b53dd2bcefcd2abb7b5967ba636da4b6f91307d2 /activerecord | |
parent | 701e48e4acef827522f5c53e1602edb1485ea21b (diff) | |
download | rails-de9e9bbbada37626ae32aadc1ae6055b61452817.tar.gz rails-de9e9bbbada37626ae32aadc1ae6055b61452817.tar.bz2 rails-de9e9bbbada37626ae32aadc1ae6055b61452817.zip |
bind values should not be merged between scopes
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/association_scope.rb | 2 |
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 aa5551fe0c..f1bec5787a 100644 --- a/activerecord/lib/active_record/associations/association_scope.rb +++ b/activerecord/lib/active_record/associations/association_scope.rb @@ -96,7 +96,7 @@ module ActiveRecord item = eval_scope(klass, scope_chain_item) if scope_chain_item == self.reflection.scope - scope.merge! item.except(:where, :includes) + scope.merge! item.except(:where, :includes, :bind) end scope.includes! item.includes_values |