Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37303 from eregon/follow-frozen-symbol-to_s
Use String#+@ before mutating the result of Symbol#to_s
- Loading branch information
ed81031
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since Rails 5 requires Ruby 2.2.2 or newer, we should probably use
name.to_s.dup
for 5-2-stable, sinceString#+@
was introduced in Ruby 2.3, right?Unless Rails defines
String#+@
on Ruby 2.2?See #37303 (comment)
ed81031
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(fixed in fbcb47b to use
name.to_s.dup
)