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

No need to dup before double-splatting a Hash

This commit is contained in:
Akira Matsuda 2019-09-13 20:20:28 +09:00
parent cd31e113c0
commit 9e4ff29f74

View file

@ -21,7 +21,7 @@ module ActiveSupport
elsif arguments.last.respond_to?(:to_hash)
options = @options.deep_merge(arguments.pop)
else
options = @options.dup
options = @options
end
if options