Parsistence 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/Parsistence/Query.rb +0 -3
- data/lib/Parsistence/version.rb +1 -1
- metadata +1 -1
data/lib/Parsistence/Query.rb
CHANGED
@@ -66,7 +66,6 @@ module Parsistence
|
|
66
66
|
|
67
67
|
def createQuery
|
68
68
|
query = PFQuery.queryWithClassName(self.klass.to_s)
|
69
|
-
$stderr.puts @includes
|
70
69
|
@includes.each do |include|
|
71
70
|
query.includeKey(include)
|
72
71
|
end
|
@@ -98,12 +97,10 @@ module Parsistence
|
|
98
97
|
first = true
|
99
98
|
@order.each do |field, direction|
|
100
99
|
if first
|
101
|
-
# $stderr.puts "Setting order first"
|
102
100
|
query.orderByAscending(field) if direction && direction == :asc
|
103
101
|
query.orderByDescending(field) if direction && direction == :desc
|
104
102
|
first = false
|
105
103
|
else
|
106
|
-
# $stderr.puts "Setting order again"
|
107
104
|
query.addAscendingOrder(field) if direction && direction == :asc
|
108
105
|
query.addDescendingOrder(field) if direction && direction == :desc
|
109
106
|
end
|
data/lib/Parsistence/version.rb
CHANGED