diff --git a/app/helpers/comments_helper.rb b/app/helpers/comments_helper.rb index 5c41b3432..b6d066935 100644 --- a/app/helpers/comments_helper.rb +++ b/app/helpers/comments_helper.rb @@ -1,11 +1,11 @@ module CommentsHelper def comment_link_text(parent) - parent.class == Debate ? t("comments_helper.comment_link") : t("comments_helper.reply_link") + parent.is_a? Comment ? t("comments_helper.reply_link") : t("comments_helper.comment_link") end def comment_button_text(parent) - parent.class == Debate ? t("comments_helper.comment_button") : t("comments_helper.reply_button") + parent.is_a? Comment ? t("comments_helper.reply_button") : t("comments_helper.comment_button") end end \ No newline at end of file