aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Schneeman <richard.schneeman+no-recruiters@gmail.com>2017-08-31 17:35:09 -0500
committerGitHub <noreply@github.com>2017-08-31 17:35:09 -0500
commit3c8545bd21cccd44abf6c45b057c1ee34d48a5f4 (patch)
tree105b7117a9d8441501ce5b1587efe6ba487c4f7c
parentb3845dcf3c305107cd51e27ad2581637d3ca9a3c (diff)
parente92cd730ea3ef726f13a9d53009865191c94b703 (diff)
downloadrails-3c8545bd21cccd44abf6c45b057c1ee34d48a5f4.tar.gz
rails-3c8545bd21cccd44abf6c45b057c1ee34d48a5f4.tar.bz2
rails-3c8545bd21cccd44abf6c45b057c1ee34d48a5f4.zip
Merge pull request #30490 from y-yagi/fix_cant_modify_forzen_string_error_in_XmlMini_JDOM
Fix `can't modify frozen String` error in `XmlMini_JDOM`
-rw-r--r--activesupport/lib/active_support/xml_mini/jdom.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/xml_mini/jdom.rb b/activesupport/lib/active_support/xml_mini/jdom.rb
index ebed376c7a..ecfe389f10 100644
--- a/activesupport/lib/active_support/xml_mini/jdom.rb
+++ b/activesupport/lib/active_support/xml_mini/jdom.rb
@@ -169,7 +169,7 @@ module ActiveSupport
# element::
# XML element to be checked.
def empty_content?(element)
- text = ""
+ text = "".dup
child_nodes = element.child_nodes
(0...child_nodes.length).each do |i|
item = child_nodes.item(i)