multi-tenant-support 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9a0f7c5067f07151a631c2b67b7b4ab6fb65da04f5b67c8020fec6d89ffe0f6
|
4
|
+
data.tar.gz: dbde15d968752339fbc72ec3aed925fa706863c88cdf5f06cb0036fda4c8679c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38e715d1ad5361a4db0cbb2b4b8cde6df8572a72186be05a54949649aad6460e69ef13e2080dbbbe678c64caeb6d7e71e7b9bafc86734266dabe957b947493ca
|
7
|
+
data.tar.gz: 3bf0ff4690f643d531b897d487e3ca519df588ea2e08cd7036d3ba65dbbad3e68f129c0c6596b92bf222833112ac59d1ba6eb2c042ac8db8e990fc0267656c67
|
@@ -10,10 +10,6 @@ module MultiTenantSupport
|
|
10
10
|
|
11
11
|
private
|
12
12
|
|
13
|
-
define_method(MultiTenantSupport.current_tenant_account_method) do
|
14
|
-
instance_variable_get("@#{MultiTenantSupport.current_tenant_account_method}")
|
15
|
-
end
|
16
|
-
|
17
13
|
def set_current_tenant_account
|
18
14
|
tenant_account = find_current_tenant_account
|
19
15
|
MultiTenantSupport::Current.tenant_account = tenant_account
|
@@ -31,8 +27,12 @@ module MultiTenantSupport
|
|
31
27
|
end
|
32
28
|
|
33
29
|
module ViewHelper
|
34
|
-
|
35
|
-
|
30
|
+
extend ActiveSupport::Concern
|
31
|
+
|
32
|
+
included do
|
33
|
+
define_method(MultiTenantSupport.current_tenant_account_method) do
|
34
|
+
instance_variable_get("@#{MultiTenantSupport.current_tenant_account_method}")
|
35
|
+
end
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi-tenant-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hopper Gee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|