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-3.1.9 lib/spree/core/controller_helpers/search.rb
solidus_core-3.1.8 lib/spree/core/controller_helpers/search.rb
solidus_core-3.0.8 lib/spree/core/controller_helpers/search.rb
solidus_core-3.0.7 lib/spree/core/controller_helpers/search.rb
solidus_core-2.11.17 lib/spree/core/controller_helpers/search.rb
solidus_core-3.1.7 lib/spree/core/controller_helpers/search.rb
solidus_core-2.11.16 lib/spree/core/controller_helpers/search.rb
solidus_core-3.0.6 lib/spree/core/controller_helpers/search.rb
solidus_core-3.1.6 lib/spree/core/controller_helpers/search.rb
solidus_core-2.11.15 lib/spree/core/controller_helpers/search.rb
solidus_core-2.11.14 lib/spree/core/controller_helpers/search.rb
solidus_core-3.0.5 lib/spree/core/controller_helpers/search.rb
solidus_core-3.1.5 lib/spree/core/controller_helpers/search.rb
solidus_core-2.11.13 lib/spree/core/controller_helpers/search.rb
solidus_core-3.0.4 lib/spree/core/controller_helpers/search.rb
solidus_core-3.1.4 lib/spree/core/controller_helpers/search.rb
solidus_core-2.11.12 lib/spree/core/controller_helpers/search.rb
solidus_core-3.0.3 lib/spree/core/controller_helpers/search.rb
solidus_core-3.1.3 lib/spree/core/controller_helpers/search.rb
solidus_core-3.1.2 lib/spree/core/controller_helpers/search.rb