mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #37303 from eregon/follow-frozen-symbol-to_s
Use String#+@ before mutating the result of Symbol#to_s
This commit is contained in:
commit
192df82f0d
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ module ActiveSupport
|
|||
end
|
||||
|
||||
def method_missing(name, *args)
|
||||
name_string = name.to_s
|
||||
name_string = +name.to_s
|
||||
if name_string.chomp!("=")
|
||||
self[name_string] = args.first
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue