This commit is contained in:
Oriol Gual
2011-06-28 22:31:24 +02:00
parent 2e0840dd04
commit 56ac32ad51

View File

@@ -307,8 +307,7 @@ module ActiveRecord
order_query.map do |o|
case o
when Arel::Nodes::Ascending
when Arel::Nodes::Descending
when Arel::Nodes::Ascending, Arel::Nodes::Descending
o.reverse
when String, Symbol
o.to_s.split(',').collect do |s|