Sha256: 9ba6a4ea3f8074473b27949e0da7ceba8a480fe9cd15d4c03675f96dc353f92d

Contents?: true

Size: 240 Bytes

Versions: 24

Compression:

Stored size: 240 Bytes

Contents

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rails-add_ons-2.1.1 app/concerns/resources_controller/pagination.rb
rails-add_ons-2.1.0 app/concerns/resources_controller/pagination.rb
rails-add_ons-2.0.2 app/concerns/resources_controller/pagination.rb
rails-add_ons-2.0.1 app/concerns/resources_controller/pagination.rb
rails-add_ons-2.0.0 app/concerns/resources_controller/pagination.rb
rails-add_ons-1.5.2 app/concerns/resources_controller/pagination.rb
rails-add_ons-1.5.1 app/concerns/resources_controller/pagination.rb
rails-add_ons-1.5.0 app/concerns/resources_controller/pagination.rb
rails-add_ons-1.4.1 app/concerns/resources_controller/pagination.rb
rails-add_ons-1.4.0 app/concerns/resources_controller/pagination.rb
rails-add_ons-1.3.3 app/concerns/resources_controller/pagination.rb
rails-add_ons-1.3.2 app/concerns/resources_controller/pagination.rb
rails-add_ons-1.3.1 app/concerns/resources_controller/pagination.rb
rails-add_ons-1.3.0 app/concerns/resources_controller/pagination.rb
rails-add_ons-1.2.0 app/concerns/resources_controller/pagination.rb
rails-add_ons-1.1.0 app/concerns/resources_controller/pagination.rb
rails-add_ons-1.0.0 app/concerns/resources_controller/pagination.rb
rails-add_ons-0.6.0 app/concerns/resources_controller/pagination.rb
rails-add_ons-0.5.0 app/concerns/resources_controller/pagination.rb
rails-add_ons-0.4.1 app/concerns/resources_controller/pagination.rb