Sha256: b3d440eb0a7ca4621b41accd27dff9a005bb4e4607874a8b1b51bb9dc1ace2e1

Contents?: true

Size: 181 Bytes

Versions: 7

Compression:

Stored size: 181 Bytes

Contents

Locomotive::Liquid::Drops::Site.class_eval do
  def search
    @search ||= ::ActiveSearch.search(@context.registers[:controller].params[:search], "site_id" => _source.id)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
locomotivecms-search-0.2.2 lib/locomotive/search/concerns/locomotive/liquid/drops/site.rb
locomotivecms-search-0.2.1 lib/locomotive/search/concerns/locomotive/liquid/drops/site.rb
locomotivecms-search-0.2.0 lib/locomotive/search/concerns/locomotive/liquid/drops/site.rb
locomotivecms-search-0.1.0 lib/locomotive/search/concerns/locomotive/liquid/drops/site.rb
locomotivecms-search-0.0.5 lib/locomotive/search/concerns/locomotive/liquid/drops/site.rb
locomotivecms-search-0.0.4 lib/locomotive/search/concerns/locomotive/liquid/drops/site.rb
locomotivecms-search-0.0.3 lib/locomotive/search/concerns/locomotive/liquid/drops/site.rb