提交 7de03ec7 编写于 作者: A Aaron Patterson

subtracting blank strings is slightly faster than blank?

上级 ccc89f48
......@@ -135,9 +135,7 @@ def build_arel
arel = build_joins(arel, @joins_values) unless @joins_values.empty?
@where_values.uniq.each do |where|
next if where.blank?
(@where_values - ['']).uniq.each do |where|
case where
when Arel::SqlLiteral
arel = arel.where(where)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册