diff options
author | Sharang Dashputre <sharang.d@gmail.com> | 2019-03-12 19:52:37 +0530 |
---|---|---|
committer | Sharang Dashputre <sharang.d@gmail.com> | 2019-03-12 20:00:13 +0530 |
commit | 5289a0b6b9235d2b9a5c01d5539a9df369953824 (patch) | |
tree | e2ea81fbd421884632088514c70fbb4405fcd45e /activemodel | |
parent | 4948663b32b5222ae5dc99f2ca474baa0aa17673 (diff) | |
download | rails-5289a0b6b9235d2b9a5c01d5539a9df369953824.tar.gz rails-5289a0b6b9235d2b9a5c01d5539a9df369953824.tar.bz2 rails-5289a0b6b9235d2b9a5c01d5539a9df369953824.zip |
Edit a changelog entry [ci skip]
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/CHANGELOG.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md index d7586f60ed..71e56e2522 100644 --- a/activemodel/CHANGELOG.md +++ b/activemodel/CHANGELOG.md @@ -1,10 +1,9 @@ - -* Changed how validation error translation strings are fetched: The new behaviour +* Change how validation error translation strings are fetched: The new behavior will first try the more specific keys, including doing locale fallback, then try the less specific ones. - For example this is the order keys will now be tried for a `blank` error on a - `product`'s `title` attribute with current locale set to `en-US`: + For example, this is the order in which keys will now be tried for a `blank` + error on a `product`'s `title` attribute with current locale set to `en-US`: en-US.activerecord.errors.models.product.attributes.title.blank en-US.activerecord.errors.models.product.blank |