adds Question case for commentable route
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user