1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove unused existing arg in SelectManager#collapse

The `existing` arg was added at 8bc0fce, but it is no longer used since
aac9da2.
This commit is contained in:
Ryuta Kamizono 2018-09-11 19:18:43 +09:00
parent 7e167d0cee
commit b05d39f3b9

View file

@ -252,9 +252,9 @@ module Arel # :nodoc: all
end
private
def collapse(exprs, existing = nil)
exprs = exprs.unshift(existing.expr) if existing
exprs = exprs.compact.map { |expr|
def collapse(exprs)
exprs = exprs.compact
exprs.map! { |expr|
if String === expr
# FIXME: Don't do this automatically
Arel.sql(expr)