lib/dm-serializer/xml_serializers/nokogiri.rb in dm-serializer-0.9.11 vs lib/dm-serializer/xml_serializers/nokogiri.rb in dm-serializer-0.10.0
- old
+ new
@@ -21,9 +21,13 @@
attrs.each {|attr_name, attr_val| node[attr_name] = attr_val }
parent << node
node
end
+ def self.add_xml(parent, xml)
+ parent << xml.root
+ end
+
def self.output(doc)
doc.root.to_s
end
end
end