Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid a hash creation since defaults is a new hash already

  • Loading branch information...
commit 55afd62f2364cf86a697b7fe9913a05c2157ac92 1 parent e56a553
@carlosantoniodasilva carlosantoniodasilva authored
View
2  activesupport/lib/active_support/number_helper/number_to_currency_converter.rb
@@ -31,7 +31,7 @@ def options
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
Please sign in to comment.
Something went wrong with that request. Please try again.