diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-11 22:30:40 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 19:58:26 +0300 |
commit | 1e6d136af31b0b91a03881a0c20b9bfa448201ee (patch) | |
tree | 1d40a3f071a078c96ac86d1b16aa1aaaf1f57cee /lib | |
parent | f74d5f2750c638f30020ba727e2947b7207bf0e2 (diff) |
Keep cross project reference logic in GroupLabel#to_reference
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/gfm/reference_rewriter.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/gitlab/gfm/reference_rewriter.rb b/lib/gitlab/gfm/reference_rewriter.rb index d0b8cd90e0e..a7c596dced0 100644 --- a/lib/gitlab/gfm/reference_rewriter.rb +++ b/lib/gitlab/gfm/reference_rewriter.rb @@ -76,15 +76,7 @@ module Gitlab if referable.respond_to?(:project) referable.to_reference(target_project) else - to_reference(referable, target_project) - end - end - - def to_reference(referable, target_project) - if @source_project != target_project - @source_project.to_reference + referable.to_reference - else - referable.to_reference + referable.to_reference(@source_project, target_project) end end |