From fbcb47b93fcf5a8aa754ce728f02a9131c4a2778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 26 Sep 2019 16:26:41 -0400 Subject: [PATCH] dup instead of `@+` since we still support Ruby 2.2 --- activesupport/lib/active_support/ordered_options.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/ordered_options.rb b/activesupport/lib/active_support/ordered_options.rb index ea822706e8..6ba1346c79 100644 --- a/activesupport/lib/active_support/ordered_options.rb +++ b/activesupport/lib/active_support/ordered_options.rb @@ -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 -- GitLab