mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix case
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user