lib/zendesk_api/collection.rb in zendesk_api-1.3.5 vs lib/zendesk_api/collection.rb in zendesk_api-1.3.7

- old
+ new

@@ -286,9 +286,13 @@ end end alias :to_str :to_s + def to_param + map(&:to_param) + end + private def set_page_and_count(body) @count = (body["count"] || @resources.size).to_i @next_page, @prev_page = body["next_page"], body["previous_page"]