diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2011-11-01 11:18:17 +1100 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2011-11-01 11:18:17 +1100 |
commit | e28bd7b22698dc2a5df05fe6ab9ceba715452a33 (patch) | |
tree | a9013100c0d2f48b7d7ee59aa8eef00802313870 /railties/guides/source | |
parent | dfdbbe059f464a0ab2437a93e9f8222942920155 (diff) | |
download | rails-e28bd7b22698dc2a5df05fe6ab9ceba715452a33.tar.gz rails-e28bd7b22698dc2a5df05fe6ab9ceba715452a33.tar.bz2 rails-e28bd7b22698dc2a5df05fe6ab9ceba715452a33.zip |
[config guide] mention that config methods are to be called on Railtie subclasses
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/configuring.textile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index bb494fbd33..cd6e7d116e 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -40,6 +40,8 @@ Rails will use that particular setting to configure Active Record. h4. Rails General Configuration +These configuration methods are to be called on a +Rails::Railtie+ object, such as a subclass of +Rails::Engine+ or +Rails::Application+. + * +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> |