Sha256: 817ebf75163293e288268edc12024f82660392cb7ed13491718964c7fbdefd40

Contents?: true

Size: 549 Bytes

Versions: 3

Compression:

Stored size: 549 Bytes

Contents

module Blacklight::SolrResponse::PaginationMethods

  include Kaminari::PageScopeMethods
  include Kaminari::ConfigurationMethods::ClassMethods

  def limit_value #:nodoc:
    rows
  end

  def offset_value #:nodoc:
    start
  end

  def total_count #:nodoc:
    total
  end

  ## Methods in kaminari master that we'd like to use today.
  # Next page number in the collection
  def next_page
    current_page + 1 unless last_page?
    end

  # Previous page number in the collection
  def prev_page
    current_page - 1 unless first_page?
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-4.5.0 lib/blacklight/solr_response/pagination_methods.rb
blacklight-4.5.0.rc1 lib/blacklight/solr_response/pagination_methods.rb
blacklight-4.4.2 lib/blacklight/solr_response/pagination_methods.rb