Module: Auditor::Tenant
- Defined in:
- lib/auditor/tenant.rb
Class Method Summary collapse
Class Method Details
.current_tenant ⇒ Object
4 5 6 |
# File 'lib/auditor/tenant.rb', line 4 def current_tenant Thread.current[:auditor_tenant] end |
.current_tenant=(tenant) ⇒ Object
8 9 10 |
# File 'lib/auditor/tenant.rb', line 8 def current_tenant=(tenant) Thread.current[:auditor_tenant] = tenant end |