Skip to content

Commit bcb428f

Browse files
committed
Coerce Grape's Total header to a String
Signed-off-by: David Celis <[email protected]>
1 parent edfec83 commit bcb428f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grape/pagination.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def paginate(collection)
2727
include_total = ApiPagination.config.include_total
2828

2929
header 'Link', links.join(', ') unless links.empty?
30-
header total_header, ApiPagination.total_from(collection) if include_total
30+
header total_header, ApiPagination.total_from(collection).to_s if include_total
3131
header per_page_header, options[:per_page].to_s
3232
header page_header, options[:page].to_s unless page_header.nil?
3333

0 commit comments

Comments
 (0)