Class: Spree::HomeController
- Inherits:
-
StoreController
- Object
- BaseController
- StoreController
- Spree::HomeController
- Defined in:
- app/controllers/spree/home_controller.rb
Instance Method Summary collapse
Methods inherited from StoreController
#cart_link, #forbidden, #unauthorized
Instance Method Details
#index ⇒ Object
6 7 8 9 10 11 |
# File 'app/controllers/spree/home_controller.rb', line 6 def index @searcher = build_searcher(params.merge(include_images: true)) @products = @searcher.retrieve_products @products = @products.includes(:possible_promotions) if @products.respond_to?(:includes) @taxonomies = Spree::Taxonomy.includes(root: :children) end |