Skip to content
Browse files

Avoid a hash creation since defaults is a new hash already

  • Loading branch information...
1 parent e56a553 commit 55afd62f2364cf86a697b7fe9913a05c2157ac92 @carlosantoniodasilva carlosantoniodasilva committed
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)

0 comments on commit 55afd62

Please sign in to comment.
Something went wrong with that request. Please try again.