]> git.openstreetmap.org Git - rails.git/commitdiff
Fix exception with XML notes#index when no notes are found
authorTom Hughes <tom@compton.nu>
Wed, 24 Apr 2013 08:41:08 +0000 (09:41 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 24 Apr 2013 08:41:08 +0000 (09:41 +0100)
app/views/notes/index.xml.builder

index 38b239afc98e40bd5aec7ef58ebde5ce4de35593..1e230b55dca3f5e42bc58d16e9fab4c0577c9608 100644 (file)
@@ -1,3 +1,3 @@
 xml.instruct!
 
-xml << render(:partial => "note", :collection => @notes)
+xml.notes << (render(:partial => "note", :collection => @notes) || "")