aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-03 19:52:35 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-03 20:26:56 -0200
commit55afd62f2364cf86a697b7fe9913a05c2157ac92 (patch)
tree17563cabeca8653fc23879823176be6d4501ef8a /activesupport
parente56a553c9536225296a98f82d4625ee2b94a2b2f (diff)
downloadrails-55afd62f2364cf86a697b7fe9913a05c2157ac92.tar.gz
rails-55afd62f2364cf86a697b7fe9913a05c2157ac92.tar.bz2
rails-55afd62f2364cf86a697b7fe9913a05c2157ac92.zip
Avoid a hash creation since defaults is a new hash already
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/number_helper/number_to_currency_converter.rb2
1 files changed, 1 insertions, 1 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 11ba0605e0..9ae27a896a 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
@@ -31,7 +31,7 @@ module ActiveSupport
defaults = default_format_options.merge(i18n_opts)
# Override negative format if format options is given
defaults[:negative_format] = "-#{opts[:format]}" if opts[:format]
- defaults.merge(opts)
+ defaults.merge!(opts)
end
end