Sha256: 122963cf2ec460047d93c27676d9706551e432cadfede0a6200a97d17084cf00

Contents?: true

Size: 384 Bytes

Versions: 9

Compression:

Stored size: 384 Bytes

Contents

module Spree
  class HomeController < Spree::StoreController
    helper 'spree/products'
    respond_to :html

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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/controllers/spree/home_controller.rb
spree_core-1.3.4 app/controllers/spree/home_controller.rb
spree_core-1.3.3 app/controllers/spree/home_controller.rb
spree_core-1.3.2 app/controllers/spree/home_controller.rb
spree_core-1.3.1 app/controllers/spree/home_controller.rb
spree_core-1.3.0 app/controllers/spree/home_controller.rb
spree_core-1.3.0.rc2 app/controllers/spree/home_controller.rb
dup_spree_core-1.3.0.rc1 app/controllers/spree/home_controller.rb
spree_core-1.3.0.rc1 app/controllers/spree/home_controller.rb