Class: Kaminari::PaginatableArray

Inherits:
Object
  • Object
show all
Defined in:
lib/liquor/extensions/kaminari.rb

Instance Method Summary collapse

Instance Method Details

#to_dropObject


6
7
8
# File 'lib/liquor/extensions/kaminari.rb', line 6

def to_drop
  Liquor::Pagination::Scope.new(self)
end

#to_page_path(url_generator, page) ⇒ Object

Raises:

  • (NotImplementedError)

10
11
12
# File 'lib/liquor/extensions/kaminari.rb', line 10

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