CHANGELOG.md 1.9 KB
Newer Older
1
*   Add `MailDeliveryJob` for delivering both regular and parameterized mail. Deprecate using `DeliveryJob` and `Parameterized::DeliveryJob`.
2 3 4

    *Gannon McGibbon*

5 6 7 8 9
*   Fix ActionMailer assertions not working when a Mail defines
    a custom delivery job class

    *Edouard Chin*

10 11 12 13 14
*   Mails with multipart `format` blocks with implicit render now also check for
    a template name in options hash instead of only using the action name.

    *Marcus Ilgner*

15 16 17 18
*   `ActionDispatch::IntegrationTest` includes `ActionMailer::TestHelper` module by default.

    *Ricardo Díaz*

19 20 21 22 23
*   Add `perform_deliveries` to a payload of `deliver.action_mailer` notification.

    *Yoshiyuki Kinjo*

*   Change delivery logging message when `perform_deliveries` is false.
24 25 26

    *Yoshiyuki Kinjo*

27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
*   Allow call `assert_enqueued_email_with` with no block.

    Example:
    ```
    def test_email
      ContactMailer.welcome.deliver_later
      assert_enqueued_email_with ContactMailer, :welcome
    end

    def test_email_with_arguments
      ContactMailer.welcome("Hello", "Goodbye").deliver_later
      assert_enqueued_email_with ContactMailer, :welcome, args: ["Hello", "Goodbye"]
    end
    ```

    *bogdanvlviv*

44 45 46 47
*   Ensure mail gem is eager autoloaded when eager load is true to prevent thread deadlocks.

    *Samuel Cochran*

48 49 50
*   Perform email jobs in `assert_emails`.

    *Gannon McGibbon*
J
Jeremy Daer 已提交
51

52 53 54 55 56 57 58 59
*   Add `Base.unregister_observer`, `Base.unregister_observers`,
    `Base.unregister_interceptor`, `Base.unregister_interceptors`,
    `Base.unregister_preview_interceptor` and `Base.unregister_preview_interceptors`.
    This makes it possible to dynamically add and remove email observers and
    interceptors at runtime in the same way they're registered.

    *Claudio Ortolina*, *Kota Miyake*

K
Kasper Timm Hansen 已提交
60
*   Rails 6 requires Ruby 2.5.0 or newer.
J
Jeremy Daer 已提交
61

K
Kasper Timm Hansen 已提交
62
    *Jeremy Daer*, *Kasper Timm Hansen*
63 64


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