aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorEugene Kenny <elkenny@gmail.com>2017-12-30 22:37:44 +0000
committerEugene Kenny <elkenny@gmail.com>2017-12-30 22:37:44 +0000
commitfdd76b7370a38bc7ac047d424d7b8e7e0a0eaf83 (patch)
tree3a1b122a61e1a9056c4e4433348da777ea940633 /guides
parent7fae88f71d7ac0a0c0755ff5172fbde00c8a3248 (diff)
downloadrails-fdd76b7370a38bc7ac047d424d7b8e7e0a0eaf83.tar.gz
rails-fdd76b7370a38bc7ac047d424d7b8e7e0a0eaf83.tar.bz2
rails-fdd76b7370a38bc7ac047d424d7b8e7e0a0eaf83.zip
Clarify that config.eager_load controls eager loading [ci skip]
Before Rails 4.0, `config.cache_classes` determined whether application code was eager loaded. The `config.eager_load` option was introduced to allow the two behaviours to be configured independently, but this documentation was never updated to reflect that change.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/engines.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/guides/source/engines.md b/guides/source/engines.md
index 33694cf76a..8d81296fa5 100644
--- a/guides/source/engines.md
+++ b/guides/source/engines.md
@@ -1516,12 +1516,12 @@ To hook into the initialization process of one of the following classes use the
These are the available configuration hooks. They do not hook into any particular framework, but instead they run in context of the entire application.
-| Hook | Use Case |
-| ---------------------- | ------------------------------------------------------------------------------------- |
-| `before_configuration` | First configurable block to run. Called before any initializers are run. |
-| `before_initialize` | Second configurable block to run. Called before frameworks initialize. |
-| `before_eager_load` | Third configurable block to run. Does not run if `config.cache_classes` set to false. |
-| `after_initialize` | Last configurable block to run. Called after frameworks initialize. |
+| Hook | Use Case |
+| ---------------------- | ---------------------------------------------------------------------------------- |
+| `before_configuration` | First configurable block to run. Called before any initializers are run. |
+| `before_initialize` | Second configurable block to run. Called before frameworks initialize. |
+| `before_eager_load` | Third configurable block to run. Does not run if `config.eager_load` set to false. |
+| `after_initialize` | Last configurable block to run. Called after frameworks initialize. |
### Example