From ffdbdacc789c43bddf885c89d71e9cb4874b70ab Mon Sep 17 00:00:00 2001 From: rgarcia Date: Tue, 10 Oct 2017 12:47:09 +0200 Subject: [PATCH] fixes specs --- app/views/comments/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %>