Merge pull request #52349 from rails/fxn/before_configuration

Improve the docs of before_configuration
This commit is contained in:
Xavier Noria 2024-07-17 09:17:00 +02:00 committed by GitHub
commit 1a9a4b0f51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -3752,7 +3752,7 @@ Initialization Events
Rails has 5 initialization events which can be hooked into (listed in the order that they are run):
* `before_configuration`: This is run as soon as the application constant inherits from `Rails::Application`. The `config` calls are evaluated before this happens.
* `before_configuration`: This is run when the application class inherits from `Rails::Application` in `config/application.rb`. Before the class body is executed. Engines may use this hook to run code before the application itself gets configured.
* `before_initialize`: This is run directly before the initialization process of the application occurs with the `:bootstrap_hook` initializer near the beginning of the Rails initialization process.