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



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

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
  end
end