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:
parent
701e48e4ac
commit
de9e9bbbad
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue