mirror of https://github.com/rails/rails
removing a conditional that is not used
This commit is contained in:
parent
d0fb0d770f
commit
10041e2d45
|
@ -264,8 +264,6 @@ module ActiveRecord
|
|||
case select = selects.last
|
||||
when Arel::Expression, Arel::SqlLiteral
|
||||
arel.project(select)
|
||||
when /^COUNT\(/
|
||||
arel.project(Arel::SqlLiteral.new(select))
|
||||
else
|
||||
arel.project(*selects)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue