mirror of https://github.com/rails/rails
Remove redundant `ELSE` branch from the `ActiveRecord::Base.in_order_of` SQL query
This commit is contained in:
parent
3d019868d5
commit
49c2342add
|
@ -1785,7 +1785,7 @@ module ActiveRecord
|
|||
node.when(column.eq(value)).then(order)
|
||||
end
|
||||
|
||||
Arel::Nodes::Ascending.new(node.else(values.length + 1))
|
||||
Arel::Nodes::Ascending.new(node)
|
||||
end
|
||||
|
||||
def resolve_arel_attributes(attrs)
|
||||
|
|
Loading…
Reference in New Issue