A copy of xxx has been removed from the module tree but is still active

后端 未结 6 1298
不知归路
不知归路 2020-12-07 15:05

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

6条回答
  •  旧巷少年郎
    2020-12-07 15:55

    Another way to solve this issue is to require the module directly in the file that is not reloadable.

    At the top of lib/company/tenant_id_loader.rb put require_relative '../../app/models/tenant' or whatever the path is relative to the id loader to the tenant model.

提交回复
热议问题