module Pagy::Backend

def pagy_get_items(collection, pagy)

You may need to override this method for collections without offset|limit
Sub-method called only by #pagy: here for easy customization of fetching by overriding
def pagy_get_items(collection, pagy)
  collection.offset(pagy.offset).limit(pagy.limit)
end