lib/soap/mapping/encodedregistry.rb in rubyjedi-soap4r-1.5.8.01 vs lib/soap/mapping/encodedregistry.rb in rubyjedi-soap4r-1.5.8.20100616125722
- old
+ new
@@ -461,9 +461,10 @@
ele.add(name, typedobj2soap(item, eledef.mapped_class))
end
else
child = Mapping.get_attribute(obj, eledef.varname)
if child.respond_to?(:each) and eledef.as_array?
+ child = child.lines if child.respond_to?(:lines) # RubyJedi: compatible with Ruby 1.8.6 and above
child.each do |item|
ele.add(name, typedobj2soap(item, eledef.mapped_class))
end
else
ele.add(name, typedobj2soap(child, eledef.mapped_class))