Browse files

Remove case statement changes from 2e0840d and 56ac32a. Inheritance FTW.

  • Loading branch information...
1 parent c713cf9 commit 2bdad7669c7a46e8c1362bd4d4e3c996496a6807 @ernie ernie committed Jul 6, 2011
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
@@ -307,7 +307,7 @@ def reverse_sql_order(order_query)
order_query.map do |o|
case o
- when Arel::Nodes::Ascending, Arel::Nodes::Descending
+ when Arel::Nodes::Ordering
o.reverse
when String, Symbol
o.to_s.split(',').collect do |s|

0 comments on commit 2bdad76

Please sign in to comment.