Skip to content

Commit

Permalink
Add require 'multi_tenant_support' to initializer file
Browse files Browse the repository at this point in the history
  • Loading branch information
hoppergee committed Oct 4, 2021
1 parent 0949ee6 commit 08efe8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'multi_tenant_support'

MultiTenantSupport.configure do
model do |config|
config.tenant_account_class_name = 'REPLACE_ME'
Expand Down
2 changes: 2 additions & 0 deletions test/generators/initializer_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class InitializerGeneratorTest < Rails::Generators::TestCase
run_generator
initializer_file_content = File.read("#{destination_root}/config/initializers/multi_tenant_support.rb")
expected_content = <<~INITIALIZER
require 'multi_tenant_support'
MultiTenantSupport.configure do
model do |config|
config.tenant_account_class_name = 'REPLACE_ME'
Expand Down

0 comments on commit 08efe8f

Please sign in to comment.