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:
parent
e56a553c95
commit
55afd62f23
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue