lib/restful_model_collection.rb in inbox-1.1.0 vs lib/restful_model_collection.rb in inbox-1.2.1

- old
+ new

@@ -11,9 +11,11 @@ @filters = filters @_api = api end def each + return enum_for(:each) unless block_given? + offset = 0 chunk_size = 100 finished = false while (!finished) do results = get_model_collection(offset, chunk_size)