Closed benoittgt closed 12 months ago
This is well known issue. We should prefer to load code that reference active record only when it's AR is already loaded. It can break other gems initializing process like https://github.com/thoughtbot/factory_bot_rails/pull/432
Related:
Fix: https://github.com/DatabaseCleaner/database_cleaner-active_record/issues/89
Closing in favor of https://github.com/DatabaseCleaner/database_cleaner-active_record/pull/91
This is well known issue. We should prefer to load code that reference active record only when it's AR is already loaded. It can break other gems initializing process like https://github.com/thoughtbot/factory_bot_rails/pull/432
Related:
Fix: https://github.com/DatabaseCleaner/database_cleaner-active_record/issues/89