Read NFC
This commit is contained in:
@@ -18,7 +18,7 @@ module LoginVerification
|
||||
|
||||
def current_shop
|
||||
begin
|
||||
return @shop
|
||||
return Shop.current_shop
|
||||
rescue
|
||||
return nil
|
||||
end
|
||||
@@ -40,7 +40,7 @@ module LoginVerification
|
||||
|
||||
#Shop Name in Navbor
|
||||
def shop_detail
|
||||
@shop = current_shop
|
||||
@shop ||= current_shop
|
||||
end
|
||||
|
||||
#check order reservation used
|
||||
|
||||
@@ -12,8 +12,7 @@ module MultiTenancy
|
||||
shop_code = request.subdomain.partition('-').last
|
||||
@shop = Shop.find_by(shop_code: shop_code)
|
||||
else
|
||||
# @shop = Shop.first
|
||||
@shop = Shop.find_by(shop_code: '262')
|
||||
@shop = Shop.first
|
||||
end
|
||||
set_current_tenant(@shop)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user