Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use shorter form for sql literals

  • Loading branch information...
commit 044e23d1bed3e19691c714335d36224677a29c40 1 parent a4aac92
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/relation/query_methods.rb
View
2  activerecord/lib/active_record/relation/query_methods.rb
@@ -143,7 +143,7 @@ def reverse_order
"#{@klass.table_name}.#{@klass.primary_key} DESC" :
reverse_sql_order(order_clause)
- relation.order(Arel::SqlLiteral.new(order))
+ relation.order(Arel.sql(order))
end
def arel
Please sign in to comment.
Something went wrong with that request. Please try again.