Sha256: eeba71b8c72ef56b7c4285530d13df448c5add3b46992f085770c8ad8defc5e0

Contents?: true

Size: 202 Bytes

Versions: 4

Compression:

Stored size: 202 Bytes

Contents

Locomotive::Liquid::Drops::Site.class_eval do
  def search
    text        = @context.registers[:request].params[:search]

    @search ||= ::ActiveSearch.search(text, conditions, radius: 150)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
locomotivecms-search-0.3.6 lib/locomotive/search/wagon/liquid/drops/site.rb
locomotivecms-search-0.3.5 lib/locomotive/search/wagon/liquid/drops/site.rb
locomotivecms-search-0.3.4 lib/locomotive/search/wagon/liquid/drops/site.rb
locomotivecms-search-0.3.3 lib/locomotive/search/wagon/liquid/drops/site.rb