[refs #90] remove redirection to pull

This commit is contained in:
Alexander Machehin 2012-06-06 00:08:32 +06:00
parent 614691a737
commit afc8572b35
1 changed files with 1 additions and 1 deletions

View File

@ -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