I\'m pretty sure the error has nothing to do with the actual content of the TenantIdLoader module. Instead, it has something to do with ActiveSupport
TenantIdLoader
ActiveSupport
What worked for me:
Update config.eager_load = false to true
config.eager_load = false
true
in config/environments/development.rb
config/environments/development.rb
Ruby 2.6.5 Rails 5.1.6