Skip to content

Commit ad37cf4

Browse files
committed
Return String for Per-Page header too
- standardized with the Total response header - and also see commit: 03bbc68 and issue #6
1 parent f7ae77f commit ad37cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails/pagination.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _paginate_collection(collection, options={})
4141

4242
headers['Link'] = links.join(', ') unless links.empty?
4343
headers['Total'] = ApiPagination.total_from(collection)
44-
headers['Per-Page'] = options[:per_page]
44+
headers['Per-Page'] = options[:per_page].to_s
4545

4646
return collection
4747
end

0 commit comments

Comments
 (0)