diff options
author | Bruce Adams <bruce.adams@acm.org> | 2011-10-24 16:18:42 -0400 |
---|---|---|
committer | Bruce Adams <bruce.adams@acm.org> | 2011-10-24 16:18:42 -0400 |
commit | 7c6d4377b85a4e534f627a8b6ea126d74a7bb039 (patch) | |
tree | 194fd6beb896558aed1a827b2d080d223c56e0a9 /railties/guides/source | |
parent | 8698debcc2ad16fbc10340fc39afcba6b1503652 (diff) | |
download | rails-7c6d4377b85a4e534f627a8b6ea126d74a7bb039.tar.gz rails-7c6d4377b85a4e534f627a8b6ea126d74a7bb039.tar.bz2 rails-7c6d4377b85a4e534f627a8b6ea126d74a7bb039.zip |
note that after_initialize is run for rake tasks
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/configuring.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index 58b92e7f9e..bb494fbd33 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -40,7 +40,7 @@ Rails will use that particular setting to configure Active Record. h4. Rails General Configuration -* +config.after_initialize+ takes a block which will be ran _after_ Rails has finished initializing the application. That includes the initialization of the framework itself, plugins, engines, and all the application's initializers in +config/initializers+. Useful for configuring values set up by other initializers: +* +config.after_initialize+ takes a block which will be run _after_ Rails has finished initializing the application. That includes the initialization of the framework itself, plugins, engines, and all the application's initializers in +config/initializers+. Note that this block _will_ be run for rake tasks. Useful for configuring values set up by other initializers: <ruby> config.after_initialize do |