Commit Graph

18 Commits

Author SHA1 Message Date
Thein Lin Kyaw
2ee1fc2423 Merge branch 'r-1902001-01' into foodcourt 2020-07-11 04:00:55 +06:30
Thein Lin Kyaw
7e9b4f7120 update license 2020-06-19 10:46:52 +06:30
Thein Lin Kyaw
11ffaa738f update multi_tenancy/license 2020-01-29 14:20:50 +06:30
Thein Lin Kyaw
a24ada5956 update action controller 2020-01-20 16:12:27 +06:30
Thein Lin Kyaw
0df7357cc9 update rake to shop_create 2020-01-17 15:53:34 +06:30
Thein Lin Kyaw
87ad49a069 update multi tenancy 2020-01-16 17:04:31 +06:30
Myat Zin Wai Maw
c359faa764 - 2020-01-16 12:05:23 +06:30
Myat Zin Wai Maw
95da00f0fa - 2020-01-16 11:50:41 +06:30
Thein Lin Kyaw
34e65ed562 update multi_tenancy 2020-01-14 12:33:53 +06:30
Thein Lin Kyaw
3088aa3016 update multi_tenancy and current shop 2020-01-13 16:35:57 +06:30
yarzar_code
dff2c69627 Read NFC 2020-01-12 20:07:28 +06:30
NyanLinHtut
314cc507a3 merge with r-19 2020-01-11 11:08:33 +06:30
Myat Zin Wai Maw
b3a828f709 - 2020-01-02 17:59:03 +06:30
Myat Zin Wai Maw
ce79038668 shop 2019-12-13 10:40:36 +06:30
Myat Zin Wai Maw
f45849de49 shop 2019-12-13 10:12:08 +06:30
Myat Zin Wai Maw
79598c0126 shop code 2019-12-10 15:18:48 +06:30
Thein Lin Kyaw
d93443ab2a remove undenfined helper 2019-12-09 10:57:43 +06:30
Thein Lin Kyaw
937f40e7c1 Single database for multiple shops
Use ActsAsTenant as Multi-tenancy for shops

See below files:
- app/controllers/concern/multi_tenancy.rb
- app/models/application_record.rb
- app/models/shop.rb

An initializer can be created to control option in ActsAsTenant.
config/initializers/acts_as_tenant.rb
require 'acts_as_tenant/sidekiq'
ActsAsTenant.configure do |config|
  config.require_tenant = false # true
end

more details: https://github.com/ErwinM/acts_as_tenant
2019-12-02 17:19:28 +06:30