neoid 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +1 -1
- data/lib/neoid/batch.rb +2 -2
- data/lib/neoid/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/lib/neoid/batch.rb
CHANGED
@@ -119,7 +119,7 @@ module Neoid
|
|
119
119
|
# so a `.then` can be chained after the batch do ... end
|
120
120
|
# it proxies all methods to the result
|
121
121
|
class BatchPromiseProxy
|
122
|
-
def initialize(
|
122
|
+
def initialize(results)
|
123
123
|
@results = results
|
124
124
|
end
|
125
125
|
|
@@ -128,7 +128,7 @@ module Neoid
|
|
128
128
|
end
|
129
129
|
|
130
130
|
def then
|
131
|
-
yield(
|
131
|
+
yield(@results)
|
132
132
|
end
|
133
133
|
end
|
134
134
|
|
data/lib/neoid/version.rb
CHANGED