From 55afd62f2364cf86a697b7fe9913a05c2157ac92 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Tue, 3 Dec 2013 19:52:35 -0200 Subject: [PATCH] Avoid a hash creation since defaults is a new hash already --- .../number_helper/number_to_currency_converter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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