diff options
| author | Sean McGivern <sean@gitlab.com> | 2016-08-30 16:30:42 +0100 |
|---|---|---|
| committer | Sean McGivern <sean@gitlab.com> | 2016-08-30 16:30:42 +0100 |
| commit | 9b57ad382e69044eb851f64cc0eb35896baa712a (patch) | |
| tree | 0f298c060195b4f7bc0eaccd4dfdaa325d900c84 /app/models/concerns | |
| parent | 43d50117187db1d8e034dbfc01e894a108f55369 (diff) | |
| download | gitlab-ce-9b57ad382e69044eb851f64cc0eb35896baa712a.tar.gz | |
Move #to_discussion to NoteOnDiff21211-comment-on-diff-partially-broken-after-updating-to-8-11
Diffstat (limited to 'app/models/concerns')
| -rw-r--r-- | app/models/concerns/note_on_diff.rb | 4 |
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 |
