Skip to content

Commit 0feb694

Browse files
committed
Fix a wrong initialize config
1 parent cb3d3ad commit 0feb694

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ MultiTenantSupport.configure do
184184
end
185185
186186
controller do |config|
187-
config.current_tenant_method_name = :current_tenant_account
187+
config.current_tenant_account_method = :current_tenant_account
188188
end
189189
190190
app do |config|

lib/generators/multi_tenant_support/templates/initializer.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ MultiTenantSupport.configure do
55
end
66

77
controller do |config|
8-
config.current_tenant_method_name = :current_tenant_account
8+
config.current_tenant_account_method = :current_tenant_account
99
end
1010

1111
app do |config|

test/generators/initializer_generator_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class InitializerGeneratorTest < Rails::Generators::TestCase
1818
end
1919
2020
controller do |config|
21-
config.current_tenant_method_name = :current_tenant_account
21+
config.current_tenant_account_method = :current_tenant_account
2222
end
2323
2424
app do |config|

0 commit comments

Comments
 (0)