Sha256: 72237d5cf4ade09c4bf4b78a268b26399f1ca3abbe79351cc9acfd5177e0f4fb

Contents?: true

Size: 275 Bytes

Versions: 3

Compression:

Stored size: 275 Bytes

Contents

module ResourcesController
  module Pagination
    def self.included(base)
      base.helper_method :paginate?
    end

    def paginate?
      true
    end

    private

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails-add_ons-3.0.0.pre1 app/concerns/resources_controller/pagination.rb
rails-add_ons-2.2.1 app/concerns/resources_controller/pagination.rb
rails-add_ons-2.2.0 app/concerns/resources_controller/pagination.rb