]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/map_bugs/_bug.xml.builder
Rename association between map_bugs and map_bug_comment to comments
[rails.git] / app / views / map_bugs / _bug.xml.builder
index 69683b7ddad92cb92b7020f89c0c6c6d4370851b..32c98721e41d7d2d603eef89e9a517b10645fb17 100644 (file)
@@ -9,17 +9,11 @@ xml.bug("lon" => bug.lon, "lat" => bug.lat) do
   end
 
   xml.comments 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
       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
         xml.text comment.comment
       end      
     end