Changelog edits [ci skip]
This commit is contained in:
parent
f2b31cd6d1
commit
ae08bef428
@ -1,24 +1,24 @@
|
||||
* Template lookup now respect default locale and I18n fallbacks.
|
||||
* Template lookup now respects default locale and I18n fallbacks.
|
||||
|
||||
Given the following templates:
|
||||
Given the following templates:
|
||||
|
||||
mailer/demo.html.erb
|
||||
mailer/demo.en.html.erb
|
||||
mailer/demo.pt.html.erb
|
||||
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.
|
||||
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.
|
||||
Now `mailer/demo.en.html.erb` has precedence over the file without locale.
|
||||
|
||||
Also, it is possible to give a fallback.
|
||||
Also, it is possible to give a fallback.
|
||||
|
||||
mailer/demo.pt.html.erb
|
||||
mailer/demo.pt-BR.html.erb
|
||||
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.
|
||||
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*
|
||||
*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.
|
||||
|
@ -1,5 +1,5 @@
|
||||
* Added an explicit error message, in `ActionView::PartialRenderer`
|
||||
for partial `rendering`, when the value of option `as` has invalid characters.
|
||||
* Add an explicit error message, in `ActionView::PartialRenderer` for partial
|
||||
`rendering`, when the value of option `as` has invalid characters.
|
||||
|
||||
*Angelo Capilleri*
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
* Added support for error dispatcher classes in `ActiveSupport::Rescuable`. Now it acts closer to Ruby's rescue.
|
||||
* Add support for error dispatcher classes in `ActiveSupport::Rescuable`.
|
||||
Now it acts closer to Ruby's rescue.
|
||||
|
||||
class BaseController < ApplicationController
|
||||
module ErrorDispatcher
|
||||
@ -14,11 +15,16 @@
|
||||
|
||||
*Genadi Samokovarov*
|
||||
|
||||
* Added `#verified` and `#valid_message?` methods to `ActiveSupport::MessageVerifier`
|
||||
* Add `#verified` and `#valid_message?` methods to `ActiveSupport::MessageVerifier`
|
||||
|
||||
Previously, the only way to decode a message with `ActiveSupport::MessageVerifier` was to use `#verify`, which would raise an exception on invalid messages. Now `#verified` can also be used, which returns `nil` on messages that cannot be decoded.
|
||||
Previously, the only way to decode a message with `ActiveSupport::MessageVerifier`
|
||||
was to use `#verify`, which would raise an exception on invalid messages. Now
|
||||
`#verified` can also be used, which returns `nil` on messages that cannot be
|
||||
decoded.
|
||||
|
||||
Previously, there was no way to check if a message's format was valid without attempting to decode it. `#valid_message?` is a boolean convenience method that checks whether the message is valid without actually decoding it.
|
||||
Previously, there was no way to check if a message's format was valid without
|
||||
attempting to decode it. `#valid_message?` is a boolean convenience method that
|
||||
checks whether the message is valid without actually decoding it.
|
||||
|
||||
*Logan Leger*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user