spree-contrib / spree-multi-domain

Multiple Spree stores on different domains - single unified backed for processing orders
https://guides.spreecommerce.org
194 stars 191 forks source link

Only show product if the current store matches in the api #108

Open plongyear opened 9 years ago

plongyear commented 9 years ago

We currently do this in the products controller for frontend, but not in the api. This makes sure we're not showing products for different stores through the ProductsController in the api.

peterberkenbosch commented 9 years ago

Thanks @plongyear I love the use of Module#prepend, however we kinda still support ruby 1.9. Makes me holding back merging this for now until we have made a proper communicated statement about dropping 1.9 support.