2013-02-26 11:45:20 -05:00
|
|
|
## Rails 4.0.0 (unreleased) ##
|
|
|
|
|
|
|
|
|
2013-02-25 09:31:50 -05:00
|
|
|
## Rails 4.0.0.beta1 (February 25, 2013) ##
|
2012-06-20 15:20:12 -04:00
|
|
|
|
2013-01-23 13:22:39 -05:00
|
|
|
* Allow passing interpolations to `#default_i18n_subject`, e.g.:
|
|
|
|
|
|
|
|
# config/locales/en.yml
|
|
|
|
en:
|
|
|
|
user_mailer:
|
|
|
|
welcome:
|
|
|
|
subject: 'Hello, %{username}'
|
|
|
|
|
|
|
|
# app/mailers/user_mailer.rb
|
|
|
|
class UserMailer < ActionMailer::Base
|
|
|
|
def welcome(user)
|
|
|
|
mail(subject: default_i18n_subject(username: user.name))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
*Olek Janiszewski*
|
|
|
|
|
|
|
|
* Eager loading made to use relation's `in_clause_length` instead of host's one.
|
2013-03-09 13:04:57 -05:00
|
|
|
Fixes #8474.
|
2012-12-20 02:26:40 -05:00
|
|
|
|
|
|
|
*Boris Staal*
|
|
|
|
|
2012-12-19 20:08:34 -05:00
|
|
|
* Explicit multipart messages no longer set the order of the MIME parts.
|
2013-04-09 16:40:58 -04:00
|
|
|
|
2012-12-19 20:08:34 -05:00
|
|
|
*Nate Berkopec*
|
2012-12-07 08:43:49 -05:00
|
|
|
|
2013-04-09 16:40:58 -04:00
|
|
|
* Do not render views when `mail` isn't called. Fixes #7761.
|
2012-09-29 16:29:29 -04:00
|
|
|
|
2012-12-19 20:08:34 -05:00
|
|
|
*Yves Senn*
|
2012-09-29 16:29:29 -04:00
|
|
|
|
2013-04-09 16:40:58 -04:00
|
|
|
* Allow delivery method options to be set per mail instance.
|
2012-08-20 09:22:12 -04:00
|
|
|
|
2013-04-09 16:40:58 -04:00
|
|
|
If your SMTP delivery settings are dynamic, you can now override settings
|
|
|
|
per mail instance for e.g.
|
2012-08-20 09:22:12 -04:00
|
|
|
|
2013-04-09 16:40:58 -04:00
|
|
|
def my_mailer(user, company)
|
2012-12-19 20:08:34 -05:00
|
|
|
mail to: user.email, subject: "Welcome!",
|
|
|
|
delivery_method_options: { user_name: company.smtp_user,
|
|
|
|
password: company.smtp_password }
|
|
|
|
end
|
2012-08-20 09:22:12 -04:00
|
|
|
|
2012-12-19 20:08:34 -05:00
|
|
|
This will ensure that your default SMTP settings will be overridden
|
|
|
|
by the company specific ones. You only have to override the settings
|
|
|
|
that are dynamic and leave the static setting in your environment
|
2013-04-09 16:40:58 -04:00
|
|
|
configuration file (e.g. `config/environments/production.rb`).
|
|
|
|
|
|
|
|
*Aditya Sanghi*
|
2012-08-20 09:22:12 -04:00
|
|
|
|
2013-04-09 16:40:58 -04:00
|
|
|
* Allow to set default Action Mailer options via `config.action_mailer.default_options=`. *Robert Pankowecki*
|
2012-07-06 21:51:31 -04:00
|
|
|
|
2012-12-19 20:08:34 -05:00
|
|
|
* Raise an `ActionView::MissingTemplate` exception when no implicit template could be found. *Damien Mathieu*
|
2012-06-20 15:20:12 -04:00
|
|
|
|
2012-12-19 20:08:34 -05:00
|
|
|
* Allow callbacks to be defined in mailers similar to `ActionController::Base`. You can configure default
|
|
|
|
settings, headers, attachments, delivery settings or change delivery using
|
2013-04-09 16:40:58 -04:00
|
|
|
`before_filter`, `after_filter`, etc. *Justin S. Leitgeb*
|
2012-10-10 05:56:21 -04:00
|
|
|
|
2012-08-28 15:15:12 -04:00
|
|
|
Please check [3-2-stable](https://github.com/rails/rails/blob/3-2-stable/actionmailer/CHANGELOG.md) for previous changes.
|