Merge pull request #1422 from consul/fix-question-comments-show

adds Question case for commentable route
This commit is contained in:
Raimond Garcia
2017-02-15 14:54:17 +01:00
committed by GitHub

View File

@@ -23,6 +23,8 @@ module CommentsHelper
def commentable_path(comment)
if comment.commentable_type == "Budget::Investment"
budget_investment_path(comment.commentable.budget_id, comment.commentable)
elsif comment.commentable_type == "Poll::Question"
question_path(comment.commentable)
else
comment.commentable
end