acts_as_multi_tenant 2.0.0.pre.rc3 → 2.0.0.pre.rc4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/multi_tenant/middleware.rb +5 -1
- data/lib/multi_tenant/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac7daaee9a739a8973d0d53c8d073ea60bafccaee32b61d19918803746b2a9f4
|
|
4
|
+
data.tar.gz: e136dd897d170864a5da44354724039aac95fe3ac386a29ab5b29602cc6303fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c657dea1c4e15a5f6de2df7d369074b7e3464a33ce1827381e7ba8443e376c3d31c325e5607b92b468b71c057bb0fc5f554c6a7886908061e07fb2bee27eb045
|
|
7
|
+
data.tar.gz: d95a1cf54b85204e84139ea011a6cdab1096059b353991df0e396ee986fe5025402dd027c9854ba9479c948b3878ea9093f60c2464ca6f117b4dd9f1bfcc188c
|
|
@@ -115,7 +115,11 @@ module MultiTenant
|
|
|
115
115
|
|
|
116
116
|
def identifiers(records_or_identifiers)
|
|
117
117
|
records_or_identifiers.map { |x|
|
|
118
|
-
x.
|
|
118
|
+
if x.class.respond_to?(:model_name) and x.class.model_name.to_s == tenant_class.model_name.to_s
|
|
119
|
+
x.send tenant_class.tenant_identifier
|
|
120
|
+
else
|
|
121
|
+
x.to_s
|
|
122
|
+
end
|
|
119
123
|
}
|
|
120
124
|
end
|
|
121
125
|
|
data/lib/multi_tenant/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acts_as_multi_tenant
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.0.pre.
|
|
4
|
+
version: 2.0.0.pre.rc4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jordan Hollinger
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2018-
|
|
13
|
+
date: 2018-12-18 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activerecord
|