Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add mention of config.to_prepare in configuring guide

  • Loading branch information...
commit 350818f2819fcbbd33192ed1a480d4776f1cbe45 1 parent 741f7b5
Ryan Bigg radar authored fxn committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  railties/guides/source/configuring.textile
3  railties/guides/source/configuring.textile
View
@@ -339,8 +339,9 @@ h3. Initialization events
Rails has 4 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_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.
* +before_initialize+: This is run directly before the initialization process of the application occurs.
+* +to_prepare+: Run after the initializers are ran for all Railties, 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.
WARNING: Some parts of your application, notably observers and routing, are not yet set up at the point where the +after_initialize+ block is called.
Please sign in to comment.
Something went wrong with that request. Please try again.