Browse files

Init guide: Cover the config variable set up which is referenced in i…

  • Loading branch information...
1 parent 50a2edb commit a78e5bcfe4672e412ed1de014a27f0ab40e8cc74 @radar radar committed Dec 27, 2010
Showing with 14 additions and 0 deletions.
  1. +14 −0 railties/guides/source/initialization.textile
@@ -715,7 +715,21 @@ This file is the first file that sets up configuration with these lines inside t
config.i18n.fallbacks =
+The +config+ method here is defined on +Rails::Railtie+ and is defined like this:
+ def config
+ @config ||=
+ end
+At this point, that +Railtie::Configuration+ constant is automatically loaded which causes the +rails/railties/configuration+ file to be loaded.
+h4. +railties/lib/rails/railties/configuration.rb+
+This file begins with a require out to +rails/configuration+ which has already been required earlier in the process and so isn't required again.
+This file defines the +Rails::Railties::Configuration+ class which is responsible for providing a way to easily configure railties.
**** REVIEW IS HERE ****

0 comments on commit a78e5bc

Please sign in to comment.