We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edfec83 commit bcb428fCopy full SHA for bcb428f
lib/grape/pagination.rb
@@ -27,7 +27,7 @@ def paginate(collection)
27
include_total = ApiPagination.config.include_total
28
29
header 'Link', links.join(', ') unless links.empty?
30
- header total_header, ApiPagination.total_from(collection) if include_total
+ header total_header, ApiPagination.total_from(collection).to_s if include_total
31
header per_page_header, options[:per_page].to_s
32
header page_header, options[:page].to_s unless page_header.nil?
33
0 commit comments