Sha256: ae5b24fb87e75af501f20dec190578be16a99a6651f0dae4f6c473da48677bf2

Contents?: true

Size: 302 Bytes

Versions: 5

Compression:

Stored size: 302 Bytes

Contents

require "activesearch/proxy"

ActiveSearch::Proxy.class_eval do

  def to_liquid
    {
      'results'       => self.to_a,
      'total_entries' => self.total_entries,
      'total_pages'   => self.total_pages,
      'page'          => self.page,
      'per_page'      => self.per_page
    }
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
locomotivecms-search-0.3.6 lib/locomotive/search/concerns/activesearch/proxy.rb
locomotivecms-search-0.3.5 lib/locomotive/search/concerns/activesearch/proxy.rb
locomotivecms-search-0.3.4 lib/locomotive/search/concerns/activesearch/proxy.rb
locomotivecms-search-0.3.3 lib/locomotive/search/concerns/activesearch/proxy.rb
locomotivecms-search-0.3.2 lib/locomotive/search/concerns/activesearch/proxy.rb