Skip to content
Browse files

Merge pull request #1987 from ernie/fix_fix_to_reverse_sql_order

Remove case statement changes from 2e0840d and 56ac32a. Inheritance FTW.
  • Loading branch information...
2 parents c713cf9 + 2bdad76 commit 689c3d674c34c0be6ec8dbadbb573b5b4abb6029 @jonleighton jonleighton committed Jul 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/query_methods.rb
2 activerecord/lib/active_record/relation/query_methods.rb
@@ -307,7 +307,7 @@ def reverse_sql_order(order_query) do |o|
case o
- when Arel::Nodes::Ascending, Arel::Nodes::Descending
+ when Arel::Nodes::Ordering
when String, Symbol
o.to_s.split(',').collect do |s|

0 comments on commit 689c3d6

Please sign in to comment.
Something went wrong with that request. Please try again.