1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Avoid a hash creation since defaults is a new hash already

This commit is contained in:
Carlos Antonio da Silva 2013-12-03 19:52:35 -02:00
parent e56a553c95
commit 55afd62f23

View file

@ -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