diff options
author | Paco Guzman <fjguzman@aspgems.com> | 2011-06-07 23:27:09 +0200 |
---|---|---|
committer | Paco Guzman <fjguzman@aspgems.com> | 2011-06-07 23:27:09 +0200 |
commit | 5acf76d17371250857cd2396c46252dd0b550cf4 (patch) | |
tree | d6affdc4e8dbd48e08be4b490cfa979601d177ff /railties/guides/source/configuring.textile | |
parent | 366ffd8164e6adc5bf6b8378763b0b75294a88ef (diff) | |
download | rails-5acf76d17371250857cd2396c46252dd0b550cf4.tar.gz rails-5acf76d17371250857cd2396c46252dd0b550cf4.tar.bz2 rails-5acf76d17371250857cd2396c46252dd0b550cf4.zip |
Add action_mailer observer and interceptors configuration options
Diffstat (limited to 'railties/guides/source/configuring.textile')
-rw-r--r-- | railties/guides/source/configuring.textile | 12 |
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+: |