Parameters:
the collection or relation.
47 48 49 50 51 52 53
# File 'lib/grape/pagy.rb', line 47 def pagy(collection, **opts) defaults = route_setting(:pagy_options) || {} Wrapper.new(request, params).paginate(collection, **defaults, **opts) do |key, value| header key, value end end