8000
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 45c10df commit f828ce2Copy full SHA for f828ce2
lib/api-pagination.rb
@@ -21,7 +21,7 @@ def paginate(collection, options = {})
21
end
22
23
def pages_from(collection, options = {})
24
- return pagy_pages_from(collection) if collection.is_a?(Pagy)
+ return pagy_pages_from(collection) if ApiPagination.config.paginator == :pagy && collection.is_a?(Pagy)
25
26
{}.tap do |pages|
27
unless collection.first_page?
0 commit comments