[#19] fix error with pull request project

This commit is contained in:
Alexander Machehin 2013-04-09 00:45:46 +06:00
parent 7c94715a4e
commit ff0d5733aa
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ module Modules
issue = Issue.find_by_hash_tag(identifier, current_ability, @project, '!') issue = Issue.find_by_hash_tag(identifier, current_ability, @project, '!')
if pull_request = issue.pull_request if pull_request = issue.pull_request
title = "#{PullRequest.model_name.human}: #{pull_request.title}" title = "#{PullRequest.model_name.human}: #{pull_request.title}"
link_to(identifier, project_pull_request_path(pull_request.project, pull_request), html_options.merge(title: title, class: "gfm gfm-pull_request #{html_options[:class]}")) link_to(identifier, project_pull_request_path(pull_request.to_project, pull_request), html_options.merge(title: title, class: "gfm gfm-pull_request #{html_options[:class]}"))
end end
end end