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.18 app/controllers/spree/products_controller_decorator.rb
spree_zoned-0.5.17 app/controllers/spree/products_controller_decorator.rb
spree_zoned-0.5.16 app/controllers/spree/products_controller_decorator.rb
spree_zoned-0.5.15 app/controllers/spree/products_controller_decorator.rb
spree_zoned-0.5.14 app/controllers/spree/products_controller_decorator.rb
spree_zoned-0.5.13 app/controllers/spree/products_controller_decorator.rb