Skip to content

Commit

Permalink
Merge pull request #40497 from lowski/patch-1
Browse files Browse the repository at this point in the history
Guides: update description of `to_prepare` event in the Configuration section
  • Loading branch information
eugeneius committed Nov 2, 2020
2 parents 2a8fe4f + 4dc21f0 commit 2dbd2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/configuring.md
Expand Up @@ -1454,7 +1454,7 @@ Rails has 5 initialization events which can be hooked into (listed in the order

* `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.

* `to_prepare`: Run after the initializers are run for all Railties (including the application itself), but before eager loading and the middleware stack is built. More importantly, will run upon every request in `development`, but only once (during boot-up) in `production` and `test`.
* `to_prepare`: Run after the initializers are run for all Railties (including the application itself), but before eager loading and the middleware stack is built. More importantly, will run upon every code reload in `development`, but only once (during boot-up) in `production` and `test`.

* `before_eager_load`: This is run directly before eager loading occurs, which is the default behavior for the `production` environment and not for the `development` environment.

Expand Down

0 comments on commit 2dbd2e4

Please sign in to comment.