Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change Direction/Operator precedence (fixes regression at d4377a9)

  • Loading branch information...
commit e4668d1ea4bf5b23a4e9c2c649c16b9c48bc43e2 1 parent 46b53aa
@d11wtq d11wtq authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/dm-core/query.rb
View
6 lib/dm-core/query.rb
@@ -1053,6 +1053,9 @@ def normalize_order
@order = Array(@order)
@order = @order.map do |order|
case order
+ when Direction
+ order.dup
+
when Operator
target = order.target
property = target.kind_of?(Property) ? target : @properties[target]
@@ -1065,9 +1068,6 @@ def normalize_order
when Property
Direction.new(order)
- when Direction
- order.dup
-
when Path
Direction.new(order.property)
Please sign in to comment.
Something went wrong with that request. Please try again.