Sha256: e73fdc3fd196205841de44902f19863dbac50d9a1d361f1bc73444c2cfe9b88c

Contents?: true

Size: 207 Bytes

Versions: 1

Compression:

Stored size: 207 Bytes

Contents

# frozen_string_literal: true

module Comfy::Paginate
  def comfy_paginate(scope, per_page: 50)
    if defined?(Kaminari)
      scope.page(params[:page]).per(per_page)
    else
      scope
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfortable_media_surfer-3.0.0 app/controllers/concerns/comfy/paginate.rb