#2036: Change empty XML responses to have the correct base element

This commit is contained in:
Jyri-Petteri Paloposki 2019-05-03 11:47:05 +03:00
parent addc3b5513
commit b9a80a385e
6 changed files with 13 additions and 13 deletions

View file

@ -9,7 +9,7 @@ class NotesController < ApplicationController
@source_view = 'note_list'
respond_to do |format|
format.html
format.xml { render :xml => @all_notes.to_xml( :except => :user_id ) }
format.xml { render :xml => @all_notes.to_xml(:root => :notes, :except => :user_id ) }
end
end