提交 56c58204 编写于 作者: A Aaron Patterson

use shorter form for sql literals

上级 fe42c00a
......@@ -141,7 +141,7 @@ def reverse_order
"#{@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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册