Browse files

Config guide: separate the initialization events and initializer meth…

…od documentation
  • Loading branch information...
1 parent 6349f5c commit 3dfcbe8d2c20e3a44805c1294459babfa8ede0db @radar radar committed Dec 2, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 railties/guides/source/configuring.textile
2 railties/guides/source/configuring.textile
@@ -352,6 +352,8 @@ Rails has 5 initialization events which can be hooked into (listed in order that
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.
+h4. +Rails::Railtie#initializer+
Rails has several initializers that run on startup that are all defined by using the +initializer+ method from +Rails::Railtie+. Here's an example of the +initialize_whiny_nils+ initializer from Active Support:

0 comments on commit 3dfcbe8

Please sign in to comment.