Sha256: 88799e536d6e68894fd917961acda1fb574aa3eb2f1eb3507ed5ea646541bf57

Contents?: true

Size: 340 Bytes

Versions: 26

Compression:

Stored size: 340 Bytes

Contents

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

  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

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