mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Update reverse order with new Arel Nodes
This commit is contained in:
@@ -307,7 +307,8 @@ module ActiveRecord
|
|||||||
|
|
||||||
order_query.map do |o|
|
order_query.map do |o|
|
||||||
case o
|
case o
|
||||||
when Arel::Nodes::Ordering
|
when Arel::Nodes::Ascending
|
||||||
|
when Arel::Nodes::Descending
|
||||||
o.reverse
|
o.reverse
|
||||||
when String, Symbol
|
when String, Symbol
|
||||||
o.to_s.split(',').collect do |s|
|
o.to_s.split(',').collect do |s|
|
||||||
|
|||||||
Reference in New Issue
Block a user