aboutsummaryrefslogblamecommitdiffstats
path: root/actionmailer/CHANGELOG.md
blob: ba9e1b06074ce69fc0a470ad4bff423f7cf986c8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                   
 
                                  
 


                               
 

                                                                                 
 
                                                                              
 
                                            
 

                                  
 

                                                                                 
 
                              
 
                                                                                                                         
*   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](https://github.com/rails/rails/blob/4-2-stable/actionmailer/CHANGELOG.md) for previous changes.