update multi_tenancy and current shop

This commit is contained in:
Thein Lin Kyaw
2020-01-13 16:35:57 +06:30
parent 66c375cc38
commit 3088aa3016
4 changed files with 13 additions and 21 deletions

View File

@@ -13,6 +13,6 @@ class Shop < ApplicationRecord
end
def self.current_shop
ActsAsTenant.current_tenant
RequestStore["current_shop"] ||= ActsAsTenant.current_tenant || Shop.first
end
end