aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/number_helper/number_to_currency_converter.rb
diff options
context:
space:
mode:
authorSushruth Sivaramakrishnan <sivsushruth@gmail.com>2015-03-05 14:48:55 +0530
committerSushruth Sivaramakrishnan <sivsushruth@gmail.com>2015-03-05 14:48:55 +0530
commit4946fd78523ed27f908b459689ae572e9da4cc65 (patch)
tree300f2a9446d1f809fe44bb941a0d868b11e5b96b /activesupport/lib/active_support/number_helper/number_to_currency_converter.rb
parent38a49f3c1b92e4f098640fc9be8dddce8e5d2af2 (diff)
downloadrails-4946fd78523ed27f908b459689ae572e9da4cc65.tar.gz
rails-4946fd78523ed27f908b459689ae572e9da4cc65.tar.bz2
rails-4946fd78523ed27f908b459689ae572e9da4cc65.zip
Doc fix [ci skip]
Diffstat (limited to 'activesupport/lib/active_support/number_helper/number_to_currency_converter.rb')
-rw-r--r--activesupport/lib/active_support/number_helper/number_to_currency_converter.rb4
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