diff options
author | Jaime Iniesta <jaimeiniesta@gmail.com> | 2015-06-19 21:35:35 +0200 |
---|---|---|
committer | Jaime Iniesta <jaimeiniesta@gmail.com> | 2016-01-10 20:47:41 +0100 |
commit | 82aab15dac7b15f7d19ef9f931068e8777c17e55 (patch) | |
tree | bfa0f624128f579cdea41939cf49d97b0d7de21a /activemodel | |
parent | d8b076c90efac796e8664c6eada8d08afac4bea3 (diff) | |
download | rails-82aab15dac7b15f7d19ef9f931068e8777c17e55.tar.gz rails-82aab15dac7b15f7d19ef9f931068e8777c17e55.tar.bz2 rails-82aab15dac7b15f7d19ef9f931068e8777c17e55.zip |
Pass the current locale to Inflector from the pluralize text helper.
The pluralize text helper uses the Inflector to determine the plural
form. The inflector accepts an optional parameter for the locale,
so we can pass it from the text helper to have locale-aware pluralizations
on the text helpers level.
The pluralize text helper now only accepts 2 positional arguments:
`count` and `singular`. Passing `plural` as a positional argument
is now deprecated.
Diffstat (limited to 'activemodel')
0 files changed, 0 insertions, 0 deletions