lib/mongo/query.rb in mongo-0.15 vs lib/mongo/query.rb in mongo-0.15.1
- old
+ new
@@ -106,10 +106,10 @@
nil
end
end
def contains_special_fields
- (@order_by != nil && @order_by.length > 0) || @explain || @hint || @snapshot
+ @order_by || @explain || @hint || @snapshot
end
def to_s
"find(#{@selector.inspect})" + (@order_by ? ".sort(#{@order_by.inspect})" : "")
end