mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-10 06:31:49 +00:00
In Ruby 1.9.2p0 'value' is a frozen string and fails to be assigned.
This commit is contained in:
parent
4e2e5e9c68
commit
7864ad1829
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ def hash_to_xml(root,map)
|
|||
map.each do |key,value|
|
||||
element = REXML::Element.new(key)
|
||||
if value.instance_of?(String)
|
||||
element.text = value
|
||||
element.text = value.dup
|
||||
elsif value.instance_of?(Hash)
|
||||
hash_to_xml(element,value)
|
||||
elsif !value.nil?
|
||||
|
|
Loading…
Reference in a new issue