Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update reverse order with new Arel Nodes

  • Loading branch information...
commit 2e0840dd0450b883800d6115a18d8867159c9812 1 parent eb933f0
@oriolgual oriolgual authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  activerecord/lib/active_record/relation/query_methods.rb
View
3  activerecord/lib/active_record/relation/query_methods.rb
@@ -307,7 +307,8 @@ def reverse_sql_order(order_query)
order_query.map do |o|
case o
- when Arel::Nodes::Ordering
+ when Arel::Nodes::Ascending
+ when Arel::Nodes::Descending
o.reverse
when String, Symbol
o.to_s.split(',').collect do |s|
Please sign in to comment.
Something went wrong with that request. Please try again.