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.
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.
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.