diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2019-03-12 14:13:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-12 14:13:09 -0400 |
commit | 1816c4f659a113b29f61a0156560f03ce9340937 (patch) | |
tree | 898cb69ec8498392ebea129d787442fc59775fff /activemodel | |
parent | 6d7c4ae6c35b5e3e7689c5a8cb549d94603467b2 (diff) | |
parent | 5289a0b6b9235d2b9a5c01d5539a9df369953824 (diff) | |
download | rails-1816c4f659a113b29f61a0156560f03ce9340937.tar.gz rails-1816c4f659a113b29f61a0156560f03ce9340937.tar.bz2 rails-1816c4f659a113b29f61a0156560f03ce9340937.zip |
Merge pull request #35585 from sharang-d/changelog-update
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 |