Sha256: 1954557b18729464dc354608f60a0822efc8c84dce6b896ebc3cd4939092c055

Contents?: true

Size: 303 Bytes

Versions: 10

Compression:

Stored size: 303 Bytes

Contents

module Rao
  module ResourcesController::KaminariConcern
    extend ActiveSupport::Concern

    included do
      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

10 entries across 10 versions & 1 rubygems

Version Path
rao-resources_controller-0.0.20.pre app/concerns/rao/resources_controller/kaminari_concern.rb
rao-resources_controller-0.0.19.pre app/concerns/rao/resources_controller/kaminari_concern.rb
rao-resources_controller-0.0.18.pre app/concerns/rao/resources_controller/kaminari_concern.rb
rao-resources_controller-0.0.17.pre app/concerns/rao/resources_controller/kaminari_concern.rb
rao-resources_controller-0.0.16.pre app/concerns/rao/resources_controller/kaminari_concern.rb
rao-resources_controller-0.0.15.pre app/concerns/rao/resources_controller/kaminari_concern.rb
rao-resources_controller-0.0.14.pre app/concerns/rao/resources_controller/kaminari_concern.rb
rao-resources_controller-0.0.13.pre app/concerns/rao/resources_controller/kaminari_concern.rb
rao-resources_controller-0.0.12.pre app/concerns/rao/resources_controller/kaminari_concern.rb
rao-resources_controller-0.0.11.pre app/concerns/rao/resources_controller/kaminari_concern.rb