subtracting blank strings is slightly faster than blank?

This commit is contained in:
Aaron Patterson
2010-08-11 15:31:44 -07:00
parent ccc89f4899
commit 7de03ec765

View File

@@ -135,9 +135,7 @@ module ActiveRecord
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)