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 at8bc0fce
, but it is no longer used sinceaac9da2
.
This commit is contained in:
parent
7e167d0cee
commit
b05d39f3b9
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue