From 5289a0b6b9235d2b9a5c01d5539a9df369953824 Mon Sep 17 00:00:00 2001 From: Sharang Dashputre Date: Tue, 12 Mar 2019 19:52:37 +0530 Subject: Edit a changelog entry [ci skip] --- activemodel/CHANGELOG.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'activemodel') 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 -- cgit v1.2.3