diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-07-06 22:51:31 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-07-06 22:51:32 -0300 |
commit | 3009c63da6eb4cb18a6f90b39562945d299b1c85 (patch) | |
tree | e25f698112f5a826bf1e0015175bc876f59cc91f /guides/source | |
parent | 842f27dd8227289ab4fd232bf89944584ad38fae (diff) | |
download | rails-3009c63da6eb4cb18a6f90b39562945d299b1c85.tar.gz rails-3009c63da6eb4cb18a6f90b39562945d299b1c85.tar.bz2 rails-3009c63da6eb4cb18a6f90b39562945d299b1c85.zip |
Improve docs, changelog and release notes for Action Mailer default_options=
[ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/4_0_release_notes.textile | 2 | ||||
-rw-r--r-- | guides/source/configuring.textile | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/guides/source/4_0_release_notes.textile b/guides/source/4_0_release_notes.textile index 8415f6f83a..3733fec950 100644 --- a/guides/source/4_0_release_notes.textile +++ b/guides/source/4_0_release_notes.textile @@ -112,6 +112,8 @@ h4(#railties_deprecations). Deprecations h3. Action Mailer +* Allow to set default Action Mailer options via <tt>config.action_mailer.default_options=</tt>. + * Raise an <tt>ActionView::MissingTemplate</tt> exception when no implicit template could be found. * Asynchronously send messages via the Rails Queue. diff --git a/guides/source/configuring.textile b/guides/source/configuring.textile index d69235a9ab..cd9aab4892 100644 --- a/guides/source/configuring.textile +++ b/guides/source/configuring.textile @@ -424,12 +424,12 @@ There are a number of settings available on +config.action_mailer+: * +config.action_mailer.perform_deliveries+ specifies whether mail will actually be delivered and is true by default. It can be convenient to set it to false for testing. -* +config.action_mailer.default_options+ configures Action Mailer defaults. Use to set options like `from` or `replay_to` for every mailer. These default to: +* +config.action_mailer.default_options+ configures Action Mailer defaults. Use to set options like `from` or `reply_to` for every mailer. These default to: <ruby> :mime_version => "1.0", :charset => "UTF-8", :content_type => "text/plain", -:parts_order => [ "text/plain", "text/enriched", "text/html" ], +:parts_order => [ "text/plain", "text/enriched", "text/html" ] </ruby> * +config.action_mailer.observers+ registers observers which will be notified when mail is delivered. |