We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c91455 commit 29e7e5dCopy full SHA for 29e7e5d
lib/arel/visitors/sqlserver.rb
@@ -32,7 +32,9 @@ class SelectManager < Arel::TreeManager
32
# a colleciton of them reliably as well as using their true object attributes to mutate them
33
# to grouping objects for the inner sql during a select statment with an offset/rownumber. So this
34
# is here till ActiveRecord & ARel does this for us instead of using SqlLiteral objects.
35
+ alias :order_without_sqlserver :order
36
def order(*exprs)
37
+ return order_without_sqlserver(*exprs) unless Arel::Visitors::SQLServer === @visitor
38
@ast.orders.concat(exprs.map{ |x|
39
case x
40
when Arel::Attributes::Attribute
0 commit comments