Sha256: 34c6bf7c5b1457375a8cdf74fecbe0add37c263a79807af396678a8869070a8b

Contents?: true

Size: 358 Bytes

Versions: 9

Compression:

Stored size: 358 Bytes

Contents

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.current_currency = current_currency&.upcase
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_core-4.2.7 lib/spree/core/controller_helpers/search.rb
spree_core-4.2.6 lib/spree/core/controller_helpers/search.rb
spree_core-4.2.5 lib/spree/core/controller_helpers/search.rb
spree_core-4.2.4 lib/spree/core/controller_helpers/search.rb
spree_core-4.2.3.1 lib/spree/core/controller_helpers/search.rb
spree_core-4.2.3 lib/spree/core/controller_helpers/search.rb
spree_core-4.2.2 lib/spree/core/controller_helpers/search.rb
spree_core-4.2.1 lib/spree/core/controller_helpers/search.rb
spree_core-4.2.0 lib/spree/core/controller_helpers/search.rb