1
0
Fork 0
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:
Ryuta Kamizono 2019-09-26 20:13:26 +09:00 committed by GitHub
commit 192df82f0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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