Skip to content

Commit b62c861

Browse files
Add include_total option to the README
1 parent b2b4ad9 commit b62c861

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ ApiPagination.configure do |config|
5555
config.per_page_param do |params|
5656
params[:page][:size]
5757
end
58+
59+
# Optional: Include the total and last_page link header
60+
# By default, this is set to true
61+
# Note: When using kaminari, this prevents the count call to the database
62+
config.include_total = false
5863
end
5964
```
6065

0 commit comments

Comments
 (0)