]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/ways/show.xml.builder
Avoid unnecessary arrays
[rails.git] / app / views / api / ways / show.xml.builder
index bcb89cdc6c4050e113e97845ca8a5676e45325d5..d520a08444376f96f25a5eb93099fb43e70bd526 100644 (file)
@@ -1,5 +1,5 @@
 xml.instruct!
 
 xml.osm(OSM::API.new.xml_root_attributes) do |osm|
 xml.instruct!
 
 xml.osm(OSM::API.new.xml_root_attributes) do |osm|
-  osm << (render(@ways) || "")
+  osm << (render(@way) || "")
 end
 end