aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorPaco Guzman <fjguzman@aspgems.com>2011-06-07 23:27:09 +0200
committerPaco Guzman <fjguzman@aspgems.com>2011-06-07 23:27:09 +0200
commit5acf76d17371250857cd2396c46252dd0b550cf4 (patch)
treed6affdc4e8dbd48e08be4b490cfa979601d177ff /railties/guides
parent366ffd8164e6adc5bf6b8378763b0b75294a88ef (diff)
downloadrails-5acf76d17371250857cd2396c46252dd0b550cf4.tar.gz
rails-5acf76d17371250857cd2396c46252dd0b550cf4.tar.bz2
rails-5acf76d17371250857cd2396c46252dd0b550cf4.zip
Add action_mailer observer and interceptors configuration options
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/configuring.textile12
1 files changed, 11 insertions, 1 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile
index 526d2da7f6..997387166f 100644
--- a/railties/guides/source/configuring.textile
+++ b/railties/guides/source/configuring.textile
@@ -364,7 +364,17 @@ There are a number of settings available on +config.action_mailer+:
:parts_order => [ "text/plain", "text/enriched", "text/html" ]
</ruby>
-h4. Configuring Active Resource
+* +config.action_mailer.observers+ registers observers which will be notified when mail is delivered.
+<ruby>
+config.active_record.observers = ["MailObserver"]
+</ruby>
+
+* +config.action_mailer.interceptors+ registers interceptors which will be called before mail is sent.
+<ruby>
+config.active_record.interceptors = ["MailInterceptor"]
+</ruby>
+
+ h4. Configuring Active Resource
There is a single configuration setting available on +config.active_resource+: