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: dce423fece46127c6f8f4f83f53b738524be0c7c84173d4aff9b02f51c077cae
4
- data.tar.gz: d8e4328c0e0338831065b54bd38317c761af13a1b21025e2d98b14bcb20ac136
3
+ metadata.gz: d9a0f7c5067f07151a631c2b67b7b4ab6fb65da04f5b67c8020fec6d89ffe0f6
4
+ data.tar.gz: dbde15d968752339fbc72ec3aed925fa706863c88cdf5f06cb0036fda4c8679c
5
5
  SHA512:
6
- metadata.gz: 46a70af78f3fb46731e8e5a989d3816d999eee75e17f13db11e111a18b7923549904621a787511455e6301234117d06a77a3df82f31c041c5f2930a7e39d1396
7
- data.tar.gz: 18b80a4ca7dbbb0e24976d0748699abde53c7dfc00b370bcb2d44222c8b4c1990d6ad728073da5f08ffd7512f2d9bb67d1a1c369b0b717ad94e14c12f6bca26a
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
- define_method(MultiTenantSupport.current_tenant_account_method) do
35
- instance_variable_get("@#{MultiTenantSupport.current_tenant_account_method}")
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
@@ -1,3 +1,3 @@
1
1
  module MultiTenantSupport
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
  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.0
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-09 00:00:00.000000000 Z
11
+ date: 2021-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails