Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
document the possibility of app initializers running before gem initializers #35055
and suggest a workaround
Per #35025, rails provides no guarantee that app initializers will run after gem initializers, which is unfortunate as it makes app initialization non-deterministic and brittle. App init code that depends on a given gem being fully initialized and integrated into rails could suddenly break after inclusion of an unrelated gem (and even it's position in the gem file)
So this possibility should be documented and a workaround suggested.