module Pagy::Backend
def pagy_get_items(collection, pagy)
def pagy_get_items(collection, pagy) # This should work with ActiveRecord, Sequel, Mongoid... collection.offset(pagy.offset).limit(pagy.items) end
def pagy_get_items(collection, pagy) # This should work with ActiveRecord, Sequel, Mongoid... collection.offset(pagy.offset).limit(pagy.items) end