Class: Spree::HomeController

Inherits:
StoreController show all
Defined in:
app/controllers/spree/home_controller.rb

Instance Method Summary collapse

Methods inherited from StoreController

#unauthorized

Methods included from Core::ControllerHelpers::Order

#after_save_new_order, #associate_user, #before_save_new_order, #current_order, included, #set_current_order

Methods included from Core::ControllerHelpers::Common

included

Methods included from Core::ControllerHelpers::Auth

#current_ability, included, #redirect_back_or_default, #store_location, #try_spree_current_user, #unauthorized

Instance Method Details

#indexObject



6
7
8
9
10
11
12
# File 'app/controllers/spree/home_controller.rb', line 6

def index
  @searcher = Spree::Config.searcher_class.new(params)
  @searcher.current_user = try_spree_current_user
  @searcher.current_currency = current_currency
  @products = @searcher.retrieve_products
  respond_with(@products)
end