Class: Tire::Results::Collection

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

Instance Method Summary collapse

Instance Method Details

#to_dropObject


7
8
9
# File 'lib/liquor/extensions/tire.rb', line 7

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

#to_page_path(url_generator, page) ⇒ Object


11
12
13
# File 'lib/liquor/extensions/tire.rb', line 11

def to_page_path(url_generator, page)
  url_generator.search_path(query: @query, page: page)
end