lib/zendesk_api/collection.rb in zendesk_api-0.3.0 vs lib/zendesk_api/collection.rb in zendesk_api-0.3.1

- old
+ new

@@ -167,11 +167,11 @@ fetch end # Calls #each on every page with the passed in block # @param [Block] block Passed to #each - def each_page(&block) - page(nil) + def each_page(start_page = @options["page"], &block) + page(start_page) clear_cache while !empty? each do |resource| arguments = [resource, @options["page"] || 1]