lib/ruote/util/misc.rb in ruote-2.1.9 vs lib/ruote/util/misc.rb in ruote-2.1.10

- old
+ new

@@ -56,14 +56,14 @@ # as soon as possible try to use that Marshal technique # it's quite fast rescue TypeError => te end - if object.is_a?(REXML::Element) - d = REXML::Document.new object.to_s - return d if object.kind_of?(REXML::Document) - return d.root - end + #if object.is_a?(REXML::Element) + # d = REXML::Document.new object.to_s + # return d if object.kind_of?(REXML::Document) + # return d.root + #end # avoiding "TypeError: singleton can't be dumped" o = object.class.allocate # some kind of collection ?