]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/nodes/show.xml.builder
Avoid unnecessary arrays
[rails.git] / app / views / api / nodes / show.xml.builder
index 5c73c219365ea2cd8bafe2a8b52ecc0d65552ef8..48f7e314ad6203b1d207d5615230d9ca33274ab1 100644 (file)
@@ -1,5 +1,5 @@
 xml.instruct!
 
 xml.osm(OSM::API.new.xml_root_attributes) do |osm|
-  osm << (render(:partial => "api/map/node", :collection => @nodes) || "")
+  osm << (render(@node) || "")
 end