diff --git a/app/views/comments/show.html.erb b/app/views/comments/show.html.erb index ce76633a0..2b2e3e841 100644 --- a/app/views/comments/show.html.erb +++ b/app/views/comments/show.html.erb @@ -1,7 +1,7 @@
<%= back_link_to commentable_path(@comment), - t("comments.show.return_to_commentable") + @comment.commentable.title unless @comment != "Poll" %> + t("comments.show.return_to_commentable") + @comment.commentable.title unless @commentable.class == Poll %>