Skip to content

Commit

Permalink
Merge pull request rails#1987 from ernie/fix_fix_to_reverse_sql_order
Browse files Browse the repository at this point in the history
Remove case statement changes from 2e0840d and 56ac32a. Inheritance FTW.
  • Loading branch information
jonleighton committed Jul 6, 2011
2 parents c713cf9 + 2bdad76 commit 689c3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation/query_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 689c3d6

Please sign in to comment.