diff options
author | Derek Prior <derekprior@gmail.com> | 2015-12-23 14:04:52 -0500 |
---|---|---|
committer | Derek Prior <derekprior@gmail.com> | 2015-12-23 14:04:52 -0500 |
commit | d86c110b9324eebca1948046a7fa150f7b49bfe5 (patch) | |
tree | 4dbb6cc43de2dfa884aefbf2abb30c2efbfb89ca /activesupport/lib/active_support/lazy_load_hooks.rb | |
parent | 2ad6deb5344abd77515f1c04edbd586a5538f705 (diff) | |
download | rails-d86c110b9324eebca1948046a7fa150f7b49bfe5.tar.gz rails-d86c110b9324eebca1948046a7fa150f7b49bfe5.tar.bz2 rails-d86c110b9324eebca1948046a7fa150f7b49bfe5.zip |
Add caveat to number_to_currency docs [ci skip]
I've worked on a few applications that have gone through the
internationalization process and had issues because they were using
`number_to_currency`. The minute a user is allowed to change their
locale, they can change the price displayed on a page from 10 US dollars
to 10 Mexican Pesos, which is far from the same amount of money.
Unlike other helpers that rely on i18n, `number_to_currency` does not
produce equivalent results when the locale is changed.
As I've explained this to a few groups of developers now, I thought it
might make for a good caveat in the docs.
Diffstat (limited to 'activesupport/lib/active_support/lazy_load_hooks.rb')
0 files changed, 0 insertions, 0 deletions