Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,17 @@ If you want to change the default number of items per page, use the
30
end
```

If you want to increase the maximum items per page to more than 30 (default) you have to set the constant `JSONAPI_PAGE_SIZE` in your controller:

```ruby
class MyController < ActionController::Base
include JSONAPI::Pagination

JSONAPI_PAGE_SIZE = 50
end
```

### Deserialization

`JSONAPI::Deserialization` provides a helper to transform a `JSONAPI` document
Expand Down