current shop
This commit is contained in:
@@ -157,7 +157,7 @@ class Foodcourt::FoodCourtController < ApplicationController
|
||||
end
|
||||
|
||||
def get_all_product()
|
||||
@product = Product..where("shop_code='#{@shop.shop_code}'")
|
||||
@product = Product.where("shop_code='#{Shop.current_shop.shop_code}'")
|
||||
end
|
||||
|
||||
# render json for http status code
|
||||
|
||||
Reference in New Issue
Block a user