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.
2 parents 3a339bc + ad37cf4 commit 601c2e4Copy full SHA for 601c2e4
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