aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/configuring.textile
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2011-10-06 13:32:21 +1100
committerRyan Bigg <radarlistener@gmail.com>2011-10-06 13:32:21 +1100
commit00751f02576719291822685bc97214af49887161 (patch)
tree9338e06f17b4436ca35099b55d8e9682d582895d /railties/guides/source/configuring.textile
parent876d3f23d2370790623c6ef261d7c2366fb404d3 (diff)
downloadrails-00751f02576719291822685bc97214af49887161.tar.gz
rails-00751f02576719291822685bc97214af49887161.tar.bz2
rails-00751f02576719291822685bc97214af49887161.zip
[config guide] mention that to_prepare hooks are called upon every request in dev, but only once in production
Diffstat (limited to 'railties/guides/source/configuring.textile')
-rw-r--r--railties/guides/source/configuring.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile
index ce1d759d5b..e56932c26c 100644
--- a/railties/guides/source/configuring.textile
+++ b/railties/guides/source/configuring.textile
@@ -461,7 +461,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 ran for all Railties (including the application itself), but before eager loading and the middleware stack is built.
+* +to_prepare+: Run after the initializers are ran 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+.
* +before_eager_load+: This is run directly before eager loading occurs, which is the default behaviour for the _production_ environment and not for the +development+ environment.