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 08de2b3 commit 2c69c7aCopy full SHA for 2c69c7a
lib/api-pagination.rb
@@ -60,6 +60,8 @@ def paginate_with_will_paginate(collection, options)
60
if defined?(Sequel::Dataset) && collection.kind_of?(Sequel::Dataset)
61
collection.paginate(options[:page], options[:per_page])
62
else
63
+ supported_options = [:page, :per_page, :total_entries]
64
+ options = options.dup.keep_if { |k,v| supported_options.include?(k.to_sym) }
65
collection.paginate(options)
66
end
67
0 commit comments