Module: Spree::Core::ControllerHelpers::Search

Included in:
BaseController
Defined in:
lib/spree/core/controller_helpers/search.rb

Instance Method Summary collapse

Instance Method Details

#build_searcher(params) ⇒ Object


7
8
9
10
11
12
# File 'lib/spree/core/controller_helpers/search.rb', line 7

def build_searcher(params)
  Spree::Config.searcher_class.new(params).tap do |searcher|
    searcher.current_user = spree_current_user
    searcher.pricing_options = current_pricing_options
  end
end