2013-12-16 00:52:58 -05:00
|
|
|
* Add mailer previews feature based on 37 Signals mail_view gem
|
|
|
|
|
|
|
|
*Andrew White*
|
|
|
|
|
2013-12-02 10:51:13 -05:00
|
|
|
* Calling `mail()` without arguments serves as getter for the current mail
|
|
|
|
message and keeps previously set headers.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
class MailerWithCallback < ActionMailer::Base
|
|
|
|
after_action :a_callback
|
|
|
|
|
|
|
|
def welcome
|
|
|
|
mail subject: "subject", to: ["joe@example.com"]
|
|
|
|
end
|
|
|
|
|
|
|
|
def a_callback
|
|
|
|
mail # => returns the current mail message
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
*Yves Senn*
|
|
|
|
|
2013-11-22 05:30:03 -05:00
|
|
|
* Instrument the generation of Action Mailer messages. The time it takes to
|
|
|
|
generate a message is written to the log.
|
2013-10-16 04:32:06 -04:00
|
|
|
|
2013-11-22 05:30:03 -05:00
|
|
|
*Daniel Schierbeck*
|
2013-10-16 04:32:06 -04:00
|
|
|
|
2013-11-22 05:30:03 -05:00
|
|
|
* Invoke mailer defaults as procs only if they are procs, do not convert with
|
|
|
|
`to_proc`. That an object is convertible to a proc does not mean it's meant
|
|
|
|
to be always used as a proc.
|
2013-07-22 14:23:53 -04:00
|
|
|
|
2013-11-22 05:30:03 -05:00
|
|
|
Fixes #11533.
|
|
|
|
|
|
|
|
*Alex Tsukernik*
|
2013-02-26 11:45:20 -05:00
|
|
|
|
2013-04-29 12:06:45 -04:00
|
|
|
Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/actionmailer/CHANGELOG.md) for previous changes.
|