未验证 提交 1816c4f6 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #35585 from sharang-d/changelog-update

Edit a changelog entry [ci skip]
* 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册