Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only run load_subclasses after app is initialized
In rails 6.1, nothing was calling descendants or subclasses during the app initialization. Rails changed in 7.0 to call subclasses from reload_schema_from_cache here: rails/rails@6f30cc0 It also changed to call descendants on the callback class (self) insead of the ActiveSupport::DescendantsTracker here: rails/rails@ffae3bd We are not expecting to be called from these locations. We can make this rails 7 compatible by ensuring the descendant loader loading of subclasses until after the app is booted, which was the implicit behavior previously.
- Loading branch information