diff options
author | Cliff Pruitt <cliff.pruitt@cliffpruitt.com> | 2019-07-31 12:11:31 -0400 |
---|---|---|
committer | Cliff Pruitt <cliff.pruitt@cliffpruitt.com> | 2019-07-31 12:11:31 -0400 |
commit | fc6ec7bfc7d1cc13380ac91eac3caeaa5e37df02 (patch) | |
tree | 0c788144fede2f6db763828b289acb87368a050e /guides/bug_report_templates/generic_gem.rb | |
parent | 4c8c8c87b07844b26564ca6aa2052660e601bc3d (diff) | |
download | rails-fc6ec7bfc7d1cc13380ac91eac3caeaa5e37df02.tar.gz rails-fc6ec7bfc7d1cc13380ac91eac3caeaa5e37df02.tar.bz2 rails-fc6ec7bfc7d1cc13380ac91eac3caeaa5e37df02.zip |
Prevent error on transliterate with frozen strings.
ActiveSupport::Inflector.transliterate mutates strings by changing encodings. Prior to this commit passing a frozen string would raise a `FrozenError`. This change duplicates the internal string, if frozen, before transliterating.
Diffstat (limited to 'guides/bug_report_templates/generic_gem.rb')
0 files changed, 0 insertions, 0 deletions