X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/560e41ebf990e8d46d3b3df97b52d5e74083668c..88524547953f87a087f97c0b7dbf398835347d82:/app/views/map_bugs/_bug.xml.builder diff --git a/app/views/map_bugs/_bug.xml.builder b/app/views/map_bugs/_bug.xml.builder index 69683b7dd..32c98721e 100644 --- a/app/views/map_bugs/_bug.xml.builder +++ b/app/views/map_bugs/_bug.xml.builder @@ -9,17 +9,11 @@ xml.bug("lon" => bug.lon, "lat" => bug.lat) do end xml.comments do - bug.map_bug_comment.each do |comment| + bug.comments.each do |comment| xml.comment do xml.date comment.date_created - - unless comment.commenter_id.nil? - xml.uid comment.commenter_id - xml.user comment.user.display_name - else - xml.user comment.commenter_name - end - + xml.uid comment.commenter_id unless comment.commenter_id.nil? + xml.user comment.commenter_name xml.text comment.comment end end