Permalink
Browse files

Update reverse order with new Arel Nodes

  • Loading branch information...
1 parent eb933f0 commit 2e0840dd0450b883800d6115a18d8867159c9812 @oriolgual oriolgual committed Jun 28, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 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|

0 comments on commit 2e0840d

Please sign in to comment.