Skip to content

Commit edfb676

Browse files
committed
Fixed the readme example bug. Closes #48
1 parent a28f6d4 commit edfb676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ If you want to change the default number of items per page or define a custom lo
314314
```ruby
315315
def jsonapi_page_size(pagination_params)
316316
per_page = pagination_params[:size].to_f.to_i
317-
per_page = 30 if per_page > 30
317+
per_page = 30 if per_page > 30 || per_page < 1
318318
per_page
319319
end
320320
```

0 commit comments

Comments
 (0)