Sha256: d0ccf9679dc86d76590a569beafd4ef01d4d722b1856636e2b423c00520c9250

Contents?: true

Size: 304 Bytes

Versions: 2

Compression:

Stored size: 304 Bytes

Contents

module ResourcesController
  module WillPaginate
    extend ActiveSupport::Concern

    included do
      helper_method :paginate?
    end

    def paginate?
      true
    end

    private

    def load_collection
      @collection = load_collection_scope.paginate(page: params[:page])
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-add_ons-2.2.1 app/concerns/resources_controller/will_paginate.rb
rails-add_ons-2.2.0 app/concerns/resources_controller/will_paginate.rb