Skip to content

Commit 601c2e4

Browse files
committed
Merge pull request #30 from marlonandrade/standardizing-header-type
Return String for Per-Page header too
2 parents 3a339bc + ad37cf4 commit 601c2e4

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)