Sha256: e67eba06e04058c8ee04e6bb39c903a7d0c9597c0e9d6f04f3311bfed32052d4

Contents?: true

Size: 238 Bytes

Versions: 8

Compression:

Stored size: 238 Bytes

Contents

module ResourcesController::Kaminari
  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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails-add_ons-2.1.1 app/concerns/resources_controller/kaminari.rb
rails-add_ons-2.1.0 app/concerns/resources_controller/kaminari.rb
rails-add_ons-2.0.2 app/concerns/resources_controller/kaminari.rb
rails-add_ons-2.0.1 app/concerns/resources_controller/kaminari.rb
rails-add_ons-2.0.0 app/concerns/resources_controller/kaminari.rb
rails-add_ons-1.5.2 app/concerns/resources_controller/kaminari.rb
rails-add_ons-1.5.1 app/concerns/resources_controller/kaminari.rb
rails-add_ons-1.5.0 app/concerns/resources_controller/kaminari.rb