Sha256: aa39f5ed06ad13f27a845472ebf0c6370212bf84ff50521724a01643ac156092

Contents?: true

Size: 324 Bytes

Versions: 4

Compression:

Stored size: 324 Bytes

Contents

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_core-1.2.5 app/controllers/spree/home_controller.rb
spree_core-1.2.4 app/controllers/spree/home_controller.rb
spree_core-1.2.3 app/controllers/spree/home_controller.rb
spree_core-1.2.2 app/controllers/spree/home_controller.rb