From b7ea35d5885eae423d065004b72d7479b9ff8537 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Wed, 8 Jun 2011 03:43:53 +0530 Subject: [PATCH] fix spacing Conflicts: railties/guides/source/configuring.textile --- railties/guides/source/configuring.textile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index 5636849042..6b184c748d 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -364,6 +364,16 @@ There are a number of settings available on +config.action_mailer+: :parts_order => [ "text/plain", "text/enriched", "text/html" ] +* +config.action_mailer.observers+ registers observers which will be notified when mail is delivered. + +config.active_record.observers = ["MailObserver"] + + +* +config.action_mailer.interceptors+ registers interceptors which will be called before mail is sent. + +config.active_record.interceptors = ["MailInterceptor"] + + h4. Configuring Active Resource There is a single configuration setting available on +config.active_resource+: @@ -424,7 +434,7 @@ Rails has 5 initialization events which can be hooked into (listed in the order * +to_prepare+: Run after the initializers are ran for all Railties (including the application itself), but before eager loading and the middleware stack is built. -* +before_eager_load+: This is run directly before eager loading occurs, which is the default behaviour for the _production_ environment and not for the +development+ enviroment. +* +before_eager_load+: This is run directly before eager loading occurs, which is the default behaviour for the _production_ environment and not for the +development+ environment. * +after_initialize+: Run directly after the initialization of the application, but before the application initializers are run. @@ -572,4 +582,4 @@ h3. Changelog * November 26, 2010: Removed all config settings not available in Rails 3 ("Ryan Bigg":http://ryanbigg.com) * August 13, 2009: Updated with config syntax and added general configuration options by "John Pignata" * January 3, 2009: First reasonably complete draft by "Mike Gunderloy":credits.html#mgunderloy -* November 5, 2008: Rough outline by "Mike Gunderloy":credits.html#mgunderloy +* November 5, 2008: Rough outline by "Mike Gunderloy":credits.html#mgunderloy \ No newline at end of file