Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defer loading when active record is properly loaded
This is well known issue. We should prefer to code that reference active record only when it's already lazy loaded. It can break other gems initializing process Related: - rails/rails#46567 - paper-trail-gem/paper_trail@fc6c5f6 (inspiration) - thoughtbot/factory_bot_rails#432 Fix: DatabaseCleaner#89
- Loading branch information