OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d6e79f
)
commit helper refactoring
author
Valery Sizov
<vsv2711@gmail.com>
Tue, 27 Dec 2011 23:06:55 +0000
(
01:06
+0200)
committer
Valery Sizov
<vsv2711@gmail.com>
Tue, 27 Dec 2011 23:06:55 +0000
(
01:06
+0200)
app/helpers/commits_helper.rb
patch
|
blob
|
history
diff --git
a/app/helpers/commits_helper.rb
b/app/helpers/commits_helper.rb
index
035fd39
..
33975e8
100644
(file)
--- 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