Skip to content

Commit

Permalink
Fixed the readme example bug. Closes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
stas committed Jun 15, 2021
1 parent a28f6d4 commit edfb676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ If you want to change the default number of items per page or define a custom lo
```ruby
def jsonapi_page_size(pagination_params)
per_page = pagination_params[:size].to_f.to_i
per_page = 30 if per_page > 30
per_page = 30 if per_page > 30 || per_page < 1
per_page
end
```
Expand Down

0 comments on commit edfb676

Please sign in to comment.