Sha256: e2ac104bd0a6ffaed93d523437d076cf016a264cb3ca47bab9ff5399456bab50

Contents?: true

Size: 387 Bytes

Versions: 86

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

module Spree
  module Core
    module ControllerHelpers
      module Search
        def build_searcher(params)
          Spree::Config.searcher_class.new(params).tap do |searcher|
            searcher.current_user = try_spree_current_user
            searcher.pricing_options = current_pricing_options
          end
        end
      end
    end
  end
end

Version data entries

86 entries across 86 versions & 2 rubygems

Version Path
solidus_core-2.10.2 lib/spree/core/controller_helpers/search.rb
solidus_core-2.9.6 lib/spree/core/controller_helpers/search.rb
solidus_core-2.8.6 lib/spree/core/controller_helpers/search.rb
solidus_core-2.10.1 lib/spree/core/controller_helpers/search.rb
solidus_core-2.9.5 lib/spree/core/controller_helpers/search.rb
solidus_core-2.10.0 lib/spree/core/controller_helpers/search.rb
solidus_core-2.9.4 lib/spree/core/controller_helpers/search.rb
solidus_core-2.6.6 lib/spree/core/controller_helpers/search.rb
solidus_core-2.7.4 lib/spree/core/controller_helpers/search.rb
solidus_core-2.8.5 lib/spree/core/controller_helpers/search.rb
solidus_core-2.9.3 lib/spree/core/controller_helpers/search.rb
solidus_core-2.9.2 lib/spree/core/controller_helpers/search.rb
solidus_core-2.10.0.beta1 lib/spree/core/controller_helpers/search.rb
solidus_core-2.7.3 lib/spree/core/controller_helpers/search.rb
solidus_core-2.6.5 lib/spree/core/controller_helpers/search.rb
solidus_core-2.9.1 lib/spree/core/controller_helpers/search.rb
solidus_core-2.9.0 lib/spree/core/controller_helpers/search.rb
solidus_core-2.9.0.rc.1 lib/spree/core/controller_helpers/search.rb
solidus_core-2.8.4 lib/spree/core/controller_helpers/search.rb
solidus_core-2.8.3 lib/spree/core/controller_helpers/search.rb