1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/CHANGELOG.md
2015-01-04 11:58:42 -03:00

996 B

  • Remove deprecate *_path helpers in email views.

    Rafael Mendonça França

  • Remove deprecated deliver and deliver! methods.

    claudiob

  • Template lookup now respects default locale and I18n fallbacks.

    Given the following templates:

    mailer/demo.html.erb
    mailer/demo.en.html.erb
    mailer/demo.pt.html.erb
    

    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.

    Now mailer/demo.en.html.erb has precedence over the file without locale.

    Also, it is possible to give a fallback.

    mailer/demo.pt.html.erb
    mailer/demo.pt-BR.html.erb
    

    So if the locale is pt-PT, mailer/demo.pt.html.erb will be rendered given the right I18n fallback configuration.

    Rafael Mendonça França

Please check 4-2-stable for previous changes.