Class: Tire::Search::Search

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

Instance Method Summary collapse

Instance Method Details

#to_dropObject



21
22
23
# File 'lib/liquor/extensions/tire.rb', line 21

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

#to_page_path(url_generator, page) ⇒ Object



25
26
27
# File 'lib/liquor/extensions/tire.rb', line 25

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