File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lib/multi_tenant_support/concern Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ module ControllerConcern
1010
1111 private
1212
13- define_method ( MultiTenantSupport . current_tenant_account_method ) do
14- instance_variable_get ( "@#{ MultiTenantSupport . current_tenant_account_method } " )
15- end
16-
1713 def set_current_tenant_account
1814 tenant_account = find_current_tenant_account
1915 MultiTenantSupport ::Current . tenant_account = tenant_account
@@ -31,8 +27,12 @@ def find_current_tenant_account
3127 end
3228
3329 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
3636 end
3737 end
3838end
You can’t perform that action at this time.
0 commit comments