ar_http_wrapper 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,9 @@ class ActiveRecordHttpWrapper
|
|
39
39
|
n_batches.times do |i|
|
40
40
|
options = {:body => {:offset => i * batch_size, :limit => batch_size}}
|
41
41
|
records = get(to_path("/"), options).try(:map) { |h| OpenStruct.new(h) }
|
42
|
-
|
42
|
+
records.each do |r|
|
43
|
+
yield r if block_given?
|
44
|
+
end
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|