1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/test/fixtures
Rafael Mendonça França ecb1981bfd Template lookup now respect 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 related file
the `mailer/demo.html.erb` will
be rendered even if `en` is 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.

Fixes #11884.
2014-12-29 23:48:35 -03:00
..
anonymous
another.path/base_mailer
asset_host_mailer
asset_mailer
async_mailer Asynchronous ActionMailer 2012-06-23 14:36:09 -04:00
attachments
auto_layout_mailer
base_mailer Template lookup now respect default locale and I18n fallbacks. 2014-12-29 23:48:35 -03:00
base_test Allow attaching files while the mail view is rendered 2014-09-22 15:52:48 +02:00
explicit_layout_mailer
first_mailer
i18n_test_mailer
layouts
mail_delivery_test/delivery_mailer raise an error if no implicit mailer template could be found 2012-06-20 22:06:31 +02:00
nested_layout_mailer
path.with.dots/funky_path_mailer
proc_mailer raise an error if no implicit mailer template could be found 2012-06-20 22:06:31 +02:00
second_mailer
templates
test_helper_mailer add test coverage for the action mailer 2014-07-04 15:55:33 +01:00
test_mailer Ruby's new Hash syntax applied in actionmailer 2013-11-14 13:41:37 +05:30
url_test_mailer let mailer templates generate URLs by default [Xavier Noria, Richard Schneeman] 2014-11-24 14:33:50 -08:00
raw_email