diff options
author | Sean McGivern <sean@gitlab.com> | 2016-08-30 18:30:42 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-08-30 18:30:42 +0300 |
commit | 9b57ad382e69044eb851f64cc0eb35896baa712a (patch) | |
tree | 0f298c060195b4f7bc0eaccd4dfdaa325d900c84 /app/models/concerns/note_on_diff.rb | |
parent | 43d50117187db1d8e034dbfc01e894a108f55369 (diff) |
Move #to_discussion to NoteOnDiff
Diffstat (limited to 'app/models/concerns/note_on_diff.rb')
-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 |