Skip to content

Commit

Permalink
No need to dup before double-splatting a Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Sep 13, 2019
1 parent cd31e11 commit 9e4ff29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/option_merger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def method_missing(method, *arguments, &block)
elsif arguments.last.respond_to?(:to_hash)
options = @options.deep_merge(arguments.pop)
else
options = @options.dup
options = @options
end

if options
Expand Down

0 comments on commit 9e4ff29

Please sign in to comment.