Commit 23de3551ab1ece5a3782c07d3a88a092122431d0
1 parent
3dea71ce
Exists in
spb-stable
and in
2 other branches
Add MergeRequest#target_project_namespace
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
app/models/merge_request.rb
... | ... | @@ -253,6 +253,14 @@ class MergeRequest < ActiveRecord::Base |
253 | 253 | end |
254 | 254 | end |
255 | 255 | |
256 | + def target_project_namespace | |
257 | + if target_project && target_project.namespace | |
258 | + target_project.namespace.path | |
259 | + else | |
260 | + "(removed)" | |
261 | + end | |
262 | + end | |
263 | + | |
256 | 264 | def source_branch_exists? |
257 | 265 | return false unless self.source_project |
258 | 266 | ... | ... |