summaryrefslogtreecommitdiff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-08-30 16:30:42 +0100
committerSean McGivern <sean@gitlab.com>2016-08-30 16:30:42 +0100
commit9b57ad382e69044eb851f64cc0eb35896baa712a (patch)
tree0f298c060195b4f7bc0eaccd4dfdaa325d900c84 /app/models/concerns
parent43d50117187db1d8e034dbfc01e894a108f55369 (diff)
downloadgitlab-ce-9b57ad382e69044eb851f64cc0eb35896baa712a.tar.gz
Diffstat (limited to 'app/models/concerns')
-rw-r--r--app/models/concerns/note_on_diff.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/concerns/note_on_diff.rb b/app/models/concerns/note_on_diff.rb
index a881fb83b7f..b8dd27a7afe 100644
--- a/app/models/concerns/note_on_diff.rb
+++ b/app/models/concerns/note_on_diff.rb
@@ -28,4 +28,8 @@ module NoteOnDiff
def can_be_award_emoji?
false
end
+
+ def to_discussion
+ Discussion.new([self])
+ end
end