提交 c8711e4e 编写于 作者: A Akira Matsuda

no need to compact an already compacted Array

上级 1a770152
......@@ -32,7 +32,7 @@ def self.build_from_hash(engine, attributes, default_table)
if values.empty?
array_predicates << attribute.eq(nil)
else
array_predicates << attribute.in(values.compact).or(attribute.eq(nil))
array_predicates << attribute.in(values).or(attribute.eq(nil))
end
else
array_predicates << attribute.in(values)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册