Sha256: 4125639ff8b7e87de9115c19eaa10196ad3fe25dc710c6170a0c6d93f2a236e1
Contents?: true
Size: 571 Bytes
Versions: 7
Compression:
Stored size: 571 Bytes
Contents
require 'tire' require 'liquor/extensions/pagination' module Tire module Results class Collection def to_drop Liquor::Pagination::Scope.new(self) end def to_page_path(url_generator, page) url_generator.search_path(query: @query, page: page) end end end end module Tire module Search class Search def to_drop Liquor::Pagination::Scope.new(self.results) end def to_page_path(url_generator, page) url_generator.search_path(query: @query, page: page) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems