lib/savon/soap/xml.rb in savon-1.1.0 vs lib/savon/soap/xml.rb in savon-1.2.0

- old
+ new

@@ -218,10 +218,10 @@ Gyoku.xml body_to_xml, :element_form_default => element_form_default, :namespace => namespace_identifier end def add_namespaces_to_body(hash, path = [input[1].to_s]) return unless hash - return hash if hash.kind_of?(Array) + return hash.map { |value| add_namespaces_to_body(value, path) } if hash.kind_of?(Array) return hash.to_s unless hash.kind_of? Hash hash.inject({}) do |newhash, (key, value)| camelcased_key = Gyoku::XMLKey.create(key) newpath = path + [camelcased_key]