From 273ae4c7299288551177cc49d07d6f6d819d97c3 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 24 Apr 2013 18:18:20 +0100 Subject: [PATCH] Wrap XML notes responses in an wrapper --- app/views/notes/index.xml.builder | 4 +++- app/views/notes/show.xml.builder | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/notes/index.xml.builder b/app/views/notes/index.xml.builder index 1e230b55d..c1c2be7e4 100644 --- a/app/views/notes/index.xml.builder +++ b/app/views/notes/index.xml.builder @@ -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 diff --git a/app/views/notes/show.xml.builder b/app/views/notes/show.xml.builder index cfb28c20e..f16cda3a6 100644 --- a/app/views/notes/show.xml.builder +++ b/app/views/notes/show.xml.builder @@ -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 -- 2.39.5