Sha256: 799c5ca5794bf9f9a899915c396e8ce4d5504a21b675dca2a9f569ffbaeade5d

Contents?: true

Size: 346 Bytes

Versions: 7

Compression:

Stored size: 346 Bytes

Contents

require 'kaminari/models/array_extension'
require 'liquor/extensions/pagination'

module Kaminari
  class PaginatableArray
    def to_drop
      Liquor::Pagination::Scope.new(self)
    end

    def to_page_path(url_generator, page)
      raise NotImplementedError, "Liquor: Kaminari::PaginatableArray cannot generate page paths"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
liquor-1.0.0 lib/liquor/extensions/kaminari.rb
liquor-0.9.6 lib/liquor/extensions/kaminari.rb
liquor-0.9.5 lib/liquor/extensions/kaminari.rb
liquor-0.9.4 lib/liquor/extensions/kaminari.rb
liquor-0.9.3 lib/liquor/extensions/kaminari.rb
liquor-0.9.2 lib/liquor/extensions/kaminari.rb
liquor-0.9.1 lib/liquor/extensions/kaminari.rb