2014-01-26 07:03:32 -05:00
|
|
|
* Support the use of underscored symbols when registering interceptors and
|
|
|
|
observers like we do elsewhere within Rails.
|
|
|
|
|
|
|
|
*Andrew White*
|
|
|
|
|
2014-01-26 06:38:30 -05:00
|
|
|
* Add the ability to intercept emails before previewing in a similar fashion
|
2014-01-30 05:12:46 -05:00
|
|
|
to how emails can be intercepted before delivery.
|
|
|
|
|
|
|
|
Fixes #13622.
|
|
|
|
|
|
|
|
Example:
|
2014-01-26 06:38:30 -05:00
|
|
|
|
|
|
|
class CSSInlineStyler
|
|
|
|
def self.previewing_email(message)
|
|
|
|
# inline CSS styles
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
ActionMailer::Base.register_preview_interceptor CSSInlineStyler
|
|
|
|
|
|
|
|
*Andrew White*
|
|
|
|
|
2014-01-30 05:12:46 -05:00
|
|
|
* Add mailer previews feature based on 37 Signals mail_view gem.
|
2013-12-16 00:52:58 -05:00
|
|
|
|
|
|
|
*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.
|
|
|
|
|
2014-01-06 04:57:00 -05:00
|
|
|
Fixes #13090.
|
|
|
|
|
2013-12-02 10:51:13 -05:00
|
|
|
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.
|