Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register modules after app initialization (#74)
If we do this earlier, Zeitwerk will autoload files from other engines. This, in turn, leads to configuration from the local app's `config/initializers` directory not being respected when loading files from those other engines. Case in point: When configuring Solidus' order state machine in Solidus 2.11 using `Spree::Config.state_machines.order = "MyOrderStateMachineModule"`, and this change is not in the gem, Solidus' `Spree::Order` class is loaded, and the wrong module is included.
- Loading branch information