Skip to content

Commit

Permalink
dup instead of @+ since we still support Ruby 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Sep 26, 2019
1 parent ed81031 commit fbcb47b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/ordered_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def [](key)
end

def method_missing(name, *args)
name_string = +name.to_s
name_string = name.to_s.dup
if name_string.chomp!("=")
self[name_string] = args.first
else
Expand Down

0 comments on commit fbcb47b

Please sign in to comment.