This commit is contained in:
Myat Zin Wai Maw
2020-01-13 15:40:25 +06:30
parent 1adecec6dc
commit 8244e6ce1c

View File

@@ -12,7 +12,8 @@ module MultiTenancy
shop_code = request.subdomain.partition('-').last shop_code = request.subdomain.partition('-').last
@shop = Shop.find_by(shop_code: shop_code) @shop = Shop.find_by(shop_code: shop_code)
else else
@shop = Shop.first # @shop = Shop.first
@shop = Shop.find_by(shop_code: '262')
end end
set_current_tenant(@shop) set_current_tenant(@shop)
end end