We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a51167 commit fb2bf24Copy full SHA for fb2bf24
README.md
@@ -49,14 +49,14 @@ ApiPagination.configure do |config|
49
config.page_param = :page
50
# or
51
config.page_param do |params|
52
- params[:page][:number] if params[:page].is_a?(Hash)
+ params[:page][:number] if params[:page].is_a?(ActionController::Parameters)
53
end
54
55
# Optional: what parameter should be used to set the per page option
56
config.per_page_param = :per_page
57
58
config.per_page_param do |params|
59
- params[:page][:size] if params[:page].is_a?(Hash)
+ params[:page][:size] if params[:page].is_a?(ActionController::Parameters)
60
61
62
# Optional: Include the total and last_page link header
0 commit comments