acts_as_tenant 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/acts_as_tenant/model_extensions.rb +1 -1
- data/lib/acts_as_tenant/sidekiq.rb +5 -1
- data/lib/acts_as_tenant/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82220bfda9712aaff3d6d06aa5ddbd236290d861
|
4
|
+
data.tar.gz: a2e325e8ed0ef37fb3a2bf0ab606eeede7e6907b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e64518b47c7500dad952b6ffe4f1faf5b5d23965fd997fa98bef9a5fd9abd33613dac5b743d8aaec146495d615998d7677d67112efc69387e6d76397e83b1683
|
7
|
+
data.tar.gz: 535154c7c6ac8e4044fbdc989b931e78fc307027aa154e8b14fc63abd658b76d418d19c0abfbbff3265add12a2a1b861a22fa66f03c89ff419ac1870648ce233
|
data/CHANGELOG.md
CHANGED
@@ -90,7 +90,7 @@ module ActsAsTenant
|
|
90
90
|
ActsAsTenant.add_global_record_model(self) if options[:has_global_records]
|
91
91
|
|
92
92
|
# Create the association
|
93
|
-
valid_options = options.slice(:foreign_key, :class_name, :inverse_of)
|
93
|
+
valid_options = options.slice(:foreign_key, :class_name, :inverse_of, :optional)
|
94
94
|
fkey = valid_options[:foreign_key] || ActsAsTenant.fkey
|
95
95
|
belongs_to tenant, valid_options
|
96
96
|
|
@@ -38,6 +38,10 @@ Sidekiq.configure_server do |config|
|
|
38
38
|
chain.add ActsAsTenant::Sidekiq::Client
|
39
39
|
end
|
40
40
|
config.server_middleware do |chain|
|
41
|
-
|
41
|
+
if defined?(Sidekiq::Middleware::Server::RetryJobs)
|
42
|
+
chain.insert_before Sidekiq::Middleware::Server::RetryJobs, ActsAsTenant::Sidekiq::Server
|
43
|
+
else
|
44
|
+
chain.add ActsAsTenant::Sidekiq::Server
|
45
|
+
end
|
42
46
|
end
|
43
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_tenant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erwin Matthijssen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: request_store
|