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 /activesupport/lib/active_support/xml_mini/jdom.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 'activesupport/lib/active_support/xml_mini/jdom.rb')
0 files changed, 0 insertions, 0 deletions