CHANGELOG.md 1.1 KB
Newer Older
1 2 3 4
*   Remove deprecate `*_path` helpers in email views.

    *Rafael Mendonça França*

5 6 7 8
*   Remove deprecated `deliver` and `deliver!` methods.

    *claudiob*

R
Robin Dupret 已提交
9
*   Template lookup now respects default locale and I18n fallbacks.
10

R
Robin Dupret 已提交
11
    Given the following templates:
12

R
Robin Dupret 已提交
13 14 15
        mailer/demo.html.erb
        mailer/demo.en.html.erb
        mailer/demo.pt.html.erb
16

R
Robin Dupret 已提交
17 18
    Before this change, for a locale that doesn't have its associated file, the
    `mailer/demo.html.erb` would be rendered even if `en` was the default locale.
19

R
Robin Dupret 已提交
20
    Now `mailer/demo.en.html.erb` has precedence over the file without locale.
21

R
Robin Dupret 已提交
22
    Also, it is possible to give a fallback.
23

R
Robin Dupret 已提交
24 25
        mailer/demo.pt.html.erb
        mailer/demo.pt-BR.html.erb
26

R
Robin Dupret 已提交
27 28
    So if the locale is `pt-PT`, `mailer/demo.pt.html.erb` will be rendered given
    the right I18n fallback configuration.
29

R
Robin Dupret 已提交
30
    *Rafael Mendonça França*
31

32 33 34 35 36 37 38
*   Add `_mailer` suffix to mailers created via generator, following the same
naming convention used in controllers and jobs.

    Closes #18074.

    *Carlos Souza*

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