mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
subtracting blank strings is slightly faster than blank?
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user