提交 7ff131f7 编写于 作者: P Pratik Naik

Make sure not to spalt string arguments

上级 abae7122
......@@ -116,7 +116,7 @@ def where(*args)
args.first
end
spawn(@relation.where(*conditions))
conditions.is_a?(String) ? spawn(@relation.where(conditions)) : spawn(@relation.where(*conditions))
end
private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册