]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/note/_note.gpx.builder
Drop with_format and user the new :formats render option instead
[rails.git] / app / views / note / _note.gpx.builder
index 8b599eb09eb1e52932616922cef9a5be2f95efe2..4b9aa9869234cf56f55e6b8cee0d20370e77ae8a 100644 (file)
@@ -1,8 +1,6 @@
 xml.wpt("lon" => note.lon, "lat" => note.lat) do
 xml.wpt("lon" => note.lon, "lat" => note.lat) do
-  with_format(:html) do
-    xml.desc do
-      xml.cdata! render(:partial => "description", :object => note, :format => :html)
-    end
+  xml.desc do
+    xml.cdata! render(:partial => "description", :object => note, :formats => [ :html ])
   end
 
   xml.extension do
   end
 
   xml.extension do