diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2015-03-05 09:41:55 +0000 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2015-03-05 09:41:55 +0000 |
commit | bb456c0a43bf942fa4968e0192402b503fe47997 (patch) | |
tree | 300f2a9446d1f809fe44bb941a0d868b11e5b96b /activesupport | |
parent | 529132ee7f8e158f0778a80bf4fe0f9554afe481 (diff) | |
parent | 4946fd78523ed27f908b459689ae572e9da4cc65 (diff) | |
download | rails-bb456c0a43bf942fa4968e0192402b503fe47997.tar.gz rails-bb456c0a43bf942fa4968e0192402b503fe47997.tar.bz2 rails-bb456c0a43bf942fa4968e0192402b503fe47997.zip |
Merge pull request #19207 from sivsushruth/doc_fix
Doc fix [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/number_helper/number_to_currency_converter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/number_helper/number_to_currency_converter.rb b/activesupport/lib/active_support/number_helper/number_to_currency_converter.rb index fb5adb574a..ce03700de1 100644 --- a/activesupport/lib/active_support/number_helper/number_to_currency_converter.rb +++ b/activesupport/lib/active_support/number_helper/number_to_currency_converter.rb @@ -29,14 +29,14 @@ module ActiveSupport def options @options ||= begin defaults = default_format_options.merge(i18n_opts) - # Override negative format if format options is given + # Override negative format if format options are given defaults[:negative_format] = "-#{opts[:format]}" if opts[:format] defaults.merge!(opts) end end def i18n_opts - # Set International negative format if not exists + # Set International negative format if it does not exist i18n = i18n_format_options i18n[:negative_format] ||= "-#{i18n[:format]}" if i18n[:format] i18n |