Skip to content

Commit f6f3fa6

Browse files
committed
Update document
1 parent 458269a commit f6f3fa6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ ActsAsTenant.configure do |config|
1616
end
1717
```
1818

19+
* Add `config.global_records_identifier` configuration. [#332](https://github.com/ErwinM/acts_as_tenant/pull/332)
20+
21+
This is helpful when you want to use a different global records identifier instead of `nil`:
22+
23+
```ruby
24+
ActsAsTenant.configure do |config|
25+
config.global_records_identifier = 1
26+
end
27+
```
28+
1929
1.0.1
2030
-----
2131

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ are shown below with sample overrides following. In `config/initializers/acts_as
253253
```ruby
254254
ActsAsTenant.configure do |config|
255255
config.require_tenant = false # true
256+
config.global_records_identifier = nil
256257

257258
# Customize the query for loading the tenant in background jobs
258259
config.job_scope = ->{ all }

0 commit comments

Comments
 (0)