use shorter form for sql literals

This commit is contained in:
Aaron Patterson
2010-11-17 16:14:17 -08:00
parent fe42c00ac3
commit 56c5820458

View File

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