Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-08-25 18:42:20 +0300
committerSean McGivern <sean@gitlab.com>2016-08-30 11:19:57 +0300
commit43d50117187db1d8e034dbfc01e894a108f55369 (patch)
treef203c2156ed2907f11d810b0dc37f783023fa7a1 /app
parent1bf2fe276ff084d3b2e0860710ec115a317dd9fc (diff)
Fix diff comments on legacy MRs
Diffstat (limited to 'app')
-rw-r--r--app/models/legacy_diff_note.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/legacy_diff_note.rb b/app/models/legacy_diff_note.rb
index 40277a9b139..0e1649aafe5 100644
--- a/app/models/legacy_diff_note.rb
+++ b/app/models/legacy_diff_note.rb
@@ -53,6 +53,10 @@ class LegacyDiffNote < Note
self.line_code
end
+ def to_discussion
+ Discussion.new([self])
+ end
+
# Check if this note is part of an "active" discussion
#
# This will always return true for anything except MergeRequest noteables,