mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
use shorter form for sql literals
This commit is contained in:
@@ -141,7 +141,7 @@ module ActiveRecord
|
||||
"#{@klass.table_name}.#{@klass.primary_key} DESC" :
|
||||
reverse_sql_order(order_clause).join(', ')
|
||||
|
||||
except(:order).order(Arel::SqlLiteral.new(order))
|
||||
except(:order).order(Arel.sql(order))
|
||||
end
|
||||
|
||||
def arel
|
||||
|
||||
Reference in New Issue
Block a user