lib/quickbooks/qbxml_base.rb in quickbooks_api-0.0.2 vs lib/quickbooks/qbxml_base.rb in quickbooks_api-0.0.3
- old
+ new
@@ -75,16 +75,16 @@
log.debug "to_qbxml#val: #{val}"
end
log.debug "to_qbxml#xml_nodes_size: #{xml_nodes.size}"
root.children = xml_nodes.join('')
- root
+ root.to_s
end
-def self.template(recursive = false, use_disk_cache = false)
+def self.template(recursive = false, use_disk_cache = false, reload = false)
if recursive
- @template ||= load_template(true, use_disk_cache)
+ @template = (!reload && @template) || load_template(true, use_disk_cache)
else build_template(false)
end
end