diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ae8d19..285ff4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,16 @@ ActsAsTenant.configure do |config| end ``` +* Add `config.global_records_identifier` configuration. [#332](https://github.com/ErwinM/acts_as_tenant/pull/332) + +This is helpful when you want to use a different global records identifier instead of `nil`: + +```ruby +ActsAsTenant.configure do |config| + config.global_records_identifier = 1 +end +``` + 1.0.1 ----- diff --git a/README.md b/README.md index b51d917..1ed8859 100644 --- a/README.md +++ b/README.md @@ -253,6 +253,7 @@ are shown below with sample overrides following. In `config/initializers/acts_as ```ruby ActsAsTenant.configure do |config| config.require_tenant = false # true + config.global_records_identifier = nil # Customize the query for loading the tenant in background jobs config.job_scope = ->{ all }