lib/apricoteatsgorilla.rb in smacks-apricoteatsgorilla-0.4.0 vs lib/apricoteatsgorilla.rb in smacks-apricoteatsgorilla-0.4.1
- old
+ new
@@ -238,10 +238,10 @@
when Array
value.map { |subitem| nested_data_to_xml(tag, subitem) }.join
when Hash
nested_data_to_xml(tag, value)
else
- tag(tag) { value.to_s } if item.respond_to? :to_s
+ tag(tag) { value.to_s } if value.respond_to? :to_s
end
}.join
end
else
tag(name) { item.to_s } if item.respond_to? :to_s
\ No newline at end of file