File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 11## [ Unreleased]
22
3+ ## [ 1.3.1] - 2021-10-10
4+
5+ - Make ViewHelper work in both controller and view
6+
37## [ 1.3.0] - 2021-10-10
48
59- Integrate with Rails default testing toolchain (Minitest + Capybara)
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
Original file line number Diff line number Diff line change 11module MultiTenantSupport
2- VERSION = '1.3.0 '
2+ VERSION = '1.3.1 '
33end
You can’t perform that action at this time.
0 commit comments