Skip to content
Browse files

Merge branch 'release-1.2'

  • Loading branch information...
2 parents 0f2a31e + 03f14bc commit d74ae6e8c4a380e438ae4cfbfa96551c21297ba7 @solnic solnic committed Oct 15, 2011
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)

0 comments on commit d74ae6e

Please sign in to comment.
Something went wrong with that request. Please try again.