diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2010-12-09 10:41:08 +1000 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2010-12-09 17:54:38 +1000 |
commit | 9560f50920f7f425b2e74e8db10590a382679ed5 (patch) | |
tree | 8e38dbdefefb44633bdac163cac508f9bc6131cb /railties/guides/source | |
parent | ceb164a420b3e91b2ff8e80ede1a818a016e5d9b (diff) | |
download | rails-9560f50920f7f425b2e74e8db10590a382679ed5.tar.gz rails-9560f50920f7f425b2e74e8db10590a382679ed5.tar.bz2 rails-9560f50920f7f425b2e74e8db10590a382679ed5.zip |
Config guide: Space out initialization events to improve readability
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/configuring.textile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index bd8d4247fd..5b344ec979 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -387,9 +387,13 @@ h3. Initialization events Rails has 5 initialization events which can be hooked into (listed in order that they are ran): * +before_configuration+: This is run as soon as the application constant inherits from +Rails::Application+. The +config+ calls are evaluated before this happens. + * +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. + * +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+ enviroment. + * +after_initialize+: Run directly after the initialization of the application, but before the application initializers are run. |