[refs #90] remove redirection to pull
This commit is contained in:
parent
614691a737
commit
afc8572b35
|
@ -12,7 +12,7 @@ module CommentsHelper
|
|||
def project_commentable_path(project, commentable)
|
||||
case
|
||||
when Comment.issue_comment?(commentable.class)
|
||||
polymorphic_path [project, commentable]
|
||||
polymorphic_path [project, commentable.pull_request ? commentable.pull_request : commentable]
|
||||
when Comment.commit_comment?(commentable.class)
|
||||
commit_path project, commentable.id
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue