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 f7ae77f commit ad37cf4Copy full SHA for ad37cf4
lib/rails/pagination.rb
@@ -41,7 +41,7 @@ def _paginate_collection(collection, options={})
41
42
headers['Link'] = links.join(', ') unless links.empty?
43
headers['Total'] = ApiPagination.total_from(collection)
44
- headers['Per-Page'] = options[:per_page]
+ headers['Per-Page'] = options[:per_page].to_s
45
46
return collection
47
end
0 commit comments