Sha256: 1139d3f044151f6dbc7a3a66cbe8496717bab31807f4a128a687f0b6fdd26782

Contents?: true

Size: 288 Bytes

Versions: 7

Compression:

Stored size: 288 Bytes

Contents

require 'thinking_sphinx'
require 'liquor/extensions/pagination'

module ThinkingSphinx
  class Search
    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

Version data entries

7 entries across 7 versions & 1 rubygems

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