Sha256: 5d3c6ce39525d980f67e02232f7fbedd592a7bfee566f2c4cf0b97ef117ee222

Contents?: true

Size: 347 Bytes

Versions: 30

Compression:

Stored size: 347 Bytes

Contents

module Spree
  HomeController.class_eval do
  
    def index
      p = params ? params : {}
      @searcher = Spree::Config.searcher_class.new(
      	p.merge(
      	  {zoned_country: (session[:zoned] && session[:zoned][:current_country]) || -214 }))
      @products = @searcher.retrieve_products
      respond_with(@products)
    end

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
spree_zoned-0.5.38 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.37 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.36 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.35 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.34 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.33 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.32 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.31 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.30 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.29 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.28 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.27 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.26 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.25 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.24 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.23 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.22 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.21 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.20 app/controllers/spree/home_controller_decorator.rb
spree_zoned-0.5.19 app/controllers/spree/home_controller_decorator.rb