CHANGELOG.md 968 字节
Newer Older
1 2
## Rails 5.1.0.beta1 (February 23, 2017) ##

3 4 5 6
*   Add `:args` to `process.action_mailer` event.

    *Yuji Yaginuma*

7
*   Add parameterized invocation of mailers as a way to share before filters and defaults between actions.
J
Jon Moss 已提交
8
    See `ActionMailer::Parameterized` for a full example of the benefit.
9 10 11 12 13 14 15

    *DHH*

*   Allow lambdas to be used as lazy defaults in addition to procs.

    *DHH*

M
MQuy 已提交
16 17 18 19 20 21 22 23 24 25 26 27
*   Mime type: allow to custom content type when setting body in headers
    and attachments.

    Example:

        def test_emails
          attachments["invoice.pdf"] = "This is test File content"
          mail(body: "Hello there", content_type: "text/html")
        end

    *Minh Quy*

28 29 30 31
*   Exception handling: use `rescue_from` to handle exceptions raised by
    mailer actions, by message delivery, and by deferred delivery jobs.

    *Jeremy Daer*
32

33
Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/actionmailer/CHANGELOG.md) for previous changes.