diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2015-12-23 17:14:19 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2015-12-23 17:14:19 -0200 |
commit | 08724cc1549dbe6fa3c02ef030b89b106c91a51c (patch) | |
tree | 4dbb6cc43de2dfa884aefbf2abb30c2efbfb89ca /actionview | |
parent | 2ad6deb5344abd77515f1c04edbd586a5538f705 (diff) | |
parent | d86c110b9324eebca1948046a7fa150f7b49bfe5 (diff) | |
download | rails-08724cc1549dbe6fa3c02ef030b89b106c91a51c.tar.gz rails-08724cc1549dbe6fa3c02ef030b89b106c91a51c.tar.bz2 rails-08724cc1549dbe6fa3c02ef030b89b106c91a51c.zip |
Merge pull request #22775 from derekprior/dp-number-to-currency-docs
Add i18n caveat to number_to_currency docs [ci skip]
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/number_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionview/lib/action_view/helpers/number_helper.rb b/actionview/lib/action_view/helpers/number_helper.rb index d7182d1fac..0931a2a4c2 100644 --- a/actionview/lib/action_view/helpers/number_helper.rb +++ b/actionview/lib/action_view/helpers/number_helper.rb @@ -63,6 +63,14 @@ module ActionView # Formats a +number+ into a currency string (e.g., $13.65). You # can customize the format in the +options+ hash. # + # The currency unit and number formatting of the current locale will be used + # unless otherwise specified in the provided options. No currency conversion + # is performed. If the user is given a way to change their locale, they will + # also be able to change the relative value of the currency displayed with + # this helper. If your application will ever support multiple locales, you + # may want to specify a constant <tt>:locale</tt> option or consider + # using a library capable of currency conversion. + # # ==== Options # # * <tt>:locale</tt> - Sets the locale to be used for formatting |