CHANGELOG.md 909 字节
Newer Older
1 2 3 4
*   Remove deprecated `deliver` and `deliver!` methods.

    *claudiob*

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

R
Robin Dupret 已提交
7
    Given the following templates:
8

R
Robin Dupret 已提交
9 10 11
        mailer/demo.html.erb
        mailer/demo.en.html.erb
        mailer/demo.pt.html.erb
12

R
Robin Dupret 已提交
13 14
    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.
15

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

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

R
Robin Dupret 已提交
20 21
        mailer/demo.pt.html.erb
        mailer/demo.pt-BR.html.erb
22

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

R
Robin Dupret 已提交
26
    *Rafael Mendonça França*
27

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