Sha256: e73fdc3fd196205841de44902f19863dbac50d9a1d361f1bc73444c2cfe9b88c
Contents?: true
Size: 207 Bytes
Versions: 2
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comfortable_media_surfer-3.1.0 | app/controllers/concerns/comfy/paginate.rb |
comfortable_media_surfer-3.0.0 | app/controllers/concerns/comfy/paginate.rb |