aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-12-02 17:22:00 +1100
committerRyan Bigg <radarlistener@gmail.com>2010-12-02 17:22:00 +1100
commit3dfcbe8d2c20e3a44805c1294459babfa8ede0db (patch)
tree894e242b0d1330fb710b08b55af5f13e613e532c /railties
parent6349f5caaed1e20477296d54f0c1850cc358323e (diff)
downloadrails-3dfcbe8d2c20e3a44805c1294459babfa8ede0db.tar.gz
rails-3dfcbe8d2c20e3a44805c1294459babfa8ede0db.tar.bz2
rails-3dfcbe8d2c20e3a44805c1294459babfa8ede0db.zip
Config guide: separate the initialization events and initializer method documentation
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/configuring.textile2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile
index 934080d60f..4f7ac60b87 100644
--- a/railties/guides/source/configuring.textile
+++ b/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:
<ruby>