Remove redundant `ELSE` branch from the `ActiveRecord::Base.in_order_of` SQL query

This commit is contained in:
fatkodima 2022-09-14 18:29:31 +03:00
parent 3d019868d5
commit 49c2342add
1 changed files with 1 additions and 1 deletions

View File

@ -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)