1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

bind values should not be merged between scopes

This commit is contained in:
Aaron Patterson 2013-06-11 15:13:04 -07:00
parent 701e48e4ac
commit de9e9bbbad

View file

@ -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