- Support Rails >= 6.1 only
- Test with matrixeval-ruby
MultiTenantSupport.set_current_tenant
MultiTenantSupport.without_current_tenant
MultiTenantSupport.full_protected?
MultiTenantSupport.unprotected?
MultiTenantSupport.turn_off_protection
MultiTenantSupport.turn_on_full_protection
MultiTenantSupport.disallow_read_across_tenant?
- Make ViewHelper work in both controller and view
- Integrate with Rails default testing toolchain (Minitest + Capybara)
- Integrate with RSpec + Capybara
- Keep current tenant unchange around job perform with SiekiqAdapter,TestAdapter,InlineAdapter,AsyncAdapter
- Add a new console config
allow_read_across_tenant_by_default
- Add an environment varialbe
ALLOW_READ_ACROSS_TENANT
- Make sure all four job delivery ways work as expected
- MyJob.perform_now('hi')
- MyJob.perform_later('hi')
- MyJob.set(queue: 'high').perform_now('hi')
- MyJob.set(queue: 'high').perform_later('hi')
- Make tenant finding strategy customizable
- Override
find_current_tenant_account
in controller
- Override
- Fix an error caused by call
helper_method
on ActionController::API
- Rename "lib/multi_tenant_support.rb" to "lib/multi-tenant-support.rb"
- Breaking: please remove
require 'multi_tenant_support'
from theconfig/initializers/multi_tenant_support.rb
- Prevent most ActiveRecord CRUD methods from acting across tenants.
- Support Row-level Multitenancy
- Build on ActiveSupport::CurrentAttributes offered by rails
- Auto set current tenant through subdomain and domain in controller
- Support ActiveJob and Sidekiq