Skip to content

Commit 2b2aea4

Browse files
Clarify load_environment_config initializer order [ci-skip]
The description of `load_environment_hook` does mention that `load_environment_config` runs before it, but that description is at the distant top of the list. This commit makes it clear that `load_environment_config` runs before `load_environment_hook` without having to read the list from top to bottom.
1 parent 12ae2e2 commit 2b2aea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/configuring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3162,7 +3162,7 @@ Below is a comprehensive list of all the initializers found in Rails in the orde
31623162

31633163
* `add_mailer_preview_paths`: Adds the directory `test/mailers/previews` from the application, railties, and engines to the lookup path for mailer preview files for the application.
31643164

3165-
* `load_environment_config`: Loads the `config/environments` file for the current environment.
3165+
* `load_environment_config`: This initializer runs before `load_environment_hook`. Loads the `config/environments` file for the current environment.
31663166

31673167
* `prepend_helpers_path`: Adds the directory `app/helpers` from the application, railties, and engines to the lookup path for helpers for the application.
31683168

0 commit comments

Comments
 (0)