From 84e756ef34aa66e4326b7e638e0669878cf62e49 Mon Sep 17 00:00:00 2001 From: ViditChitkara Date: Mon, 6 Nov 2017 23:17:16 +0530 Subject: [PATCH] fixed comments in notifications closes #1782 --- app/views/admin/comments/_all_comments.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/comments/_all_comments.html.haml b/app/views/admin/comments/_all_comments.html.haml index eb3a8093..87c3acb7 100644 --- a/app/views/admin/comments/_all_comments.html.haml +++ b/app/views/admin/comments/_all_comments.html.haml @@ -8,5 +8,5 @@ %h4.title= link_to event.title, admin_conference_program_event_path(event.program.conference.short_title, event) %hr - comments.each do |comment| - %h5.strong Posted by: #{comment.user.name} | Created at: #{comment.created_at} + %h5.strong Posted by: #{comment.user.nil? ? 'Anonymous' : comment.user.name} | Created at: #{comment.created_at} %p= comment.body