lib/contentful/management/array.rb in contentful-management-1.10.0 vs lib/contentful/management/array.rb in contentful-management-1.10.1
- old
+ new
@@ -22,9 +22,10 @@
# Simplifies pagination
def next_page
if request
new_skip = (skip || 0) + (limit || DEFAULT_LIMIT)
new_request = request.copy
+ new_request.instance_variable_set(:@query, {}) if new_request.query.nil?
new_request.query[:skip] = new_skip
response = new_request.get
ResourceBuilder.new(response, client).run
else
false