Wrap XML notes responses in an <osm> wrapper
authorTom Hughes <tom@compton.nu>
Wed, 24 Apr 2013 17:18:20 +0000 (18:18 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 24 Apr 2013 17:18:20 +0000 (18:18 +0100)
app/views/notes/index.xml.builder
app/views/notes/show.xml.builder

index 1e230b55dca3f5e42bc58d16e9fab4c0577c9608..c1c2be7e40a79d2e1eec16a6129443d2119c7f49 100644 (file)
@@ -1,3 +1,5 @@
 xml.instruct!
 
-xml.notes << (render(:partial => "note", :collection => @notes) || "")
+xml.osm(:version => API_VERSION, :generator => GENERATOR) do |osm|
+  osm << (render(:partial => "note", :collection => @notes) || "")
+end
index cfb28c20e1b7d70028b0a5e302c8afcb4c045890..f16cda3a620746dbef9bdc20b3f8c19849ddd4c1 100644 (file)
@@ -1,3 +1,5 @@
 xml.instruct!
 
-xml << render(:partial => "note", :object => @note)
+xml.osm(:version => API_VERSION, :generator => GENERATOR) do |osm|
+  osm << render(:partial => "note", :object => @note)
+end