aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-12-28 14:19:49 +1000
committerRyan Bigg <radarlistener@gmail.com>2010-12-28 14:19:49 +1000
commit5196333d6c3288c3fba414d5aa303fe5cbe91175 (patch)
tree808a070c9f58d79476ef3eab133fd614f47b034c /railties/guides/source
parent61e6a9f9d45e4c015ad10e44c9cb846ac4bb971f (diff)
downloadrails-5196333d6c3288c3fba414d5aa303fe5cbe91175.tar.gz
rails-5196333d6c3288c3fba414d5aa303fe5cbe91175.tar.bz2
rails-5196333d6c3288c3fba414d5aa303fe5cbe91175.zip
init guide: cover active_support/railtie.rb
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/initialization.textile12
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/guides/source/initialization.textile b/railties/guides/source/initialization.textile
index 868db6d33b..04c3cc28ed 100644
--- a/railties/guides/source/initialization.textile
+++ b/railties/guides/source/initialization.textile
@@ -903,6 +903,18 @@ We'll see these +@load_hooks+ used later on in the initialization process.
This rest of +i18n_railtie.rb+ defines the protected class methods +include_fallback_modules+, +init_fallbacks+ and +validate_fallbacks+.
+h4. Back to +activesupport/lib/active_support/railtie.rb+
+
+This file defines the +ActiveSupport::Railtie+ constant which like the +I18n::Railtie+ constant just defined, inherits from +Rails::Railtie+ meaning the +inherited+ method would be called again here, including +Rails::Configurable+ into this class. This class makes use of +Rails::Railtie+'s +config+ method again, setting up the configuration options for Active Support.
+
+Then this Railtie sets up three more initializers:
+
+* +active_support.initialize_whiny_nils+
+* +active_support.deprecation_behavior+
+* +active_support.initialize_time_zone+
+
+We will cover what each of these initializers do when they run.
+
**** REVIEW IS HERE ****