diff options
author | Valery Sizov <vsv2711@gmail.com> | 2011-12-28 01:06:55 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2011-12-28 01:06:55 +0200 |
commit | 49b58057091cbe6d9d684d78b1efbc77c578bcd8 (patch) | |
tree | 83ce07fe7a1fd7c7be9c315602b0ff2a076dfb86 /app | |
parent | 5d6e79f4b97290829e4c22aecf91e57519107a5c (diff) | |
download | gitlab-ce-49b58057091cbe6d9d684d78b1efbc77c578bcd8.tar.gz |
commit helper refactoring
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/commits_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb index 035fd39cc0e..33975e8f0ae 100644 --- a/app/helpers/commits_helper.rb +++ b/app/helpers/commits_helper.rb @@ -30,8 +30,7 @@ module CommitsHelper message.split(/(#[0-9]+)/m).each do |m| if m =~ /(#([0-9]+))/m begin - issue = Issue.find($2) - raise Exception('Issue not belonging to current project, not creating link !') unless issue.project_id == project.id + issue = project.issues.find($2) out += link_to($1, project_issue_path(project, $2)) rescue out += $1 |