提交 de9e9bbb 编写于 作者: A Aaron Patterson

bind values should not be merged between scopes

上级 701e48e4
......@@ -96,7 +96,7 @@ def add_constraints(scope)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册