Skip to content
Browse files

Config guide: separate the initialization events and initializer meth…

…od documentation
  • Loading branch information...
1 parent b181968 commit e523adbdf54c5f42906d54bae23d1616f3b8501d @radar radar committed with fxn
Showing with 2 additions and 0 deletions.
  1. +2 −0 railties/guides/source/configuring.textile
View
2 railties/guides/source/configuring.textile
@@ -360,6 +360,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:
<ruby>

0 comments on commit e523adb

Please sign in to comment.
Something went wrong with that request. Please try again.