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