diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-02-06 13:31:46 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-02-06 13:31:46 +0300 |
commit | a04d9ba90c0d1df02f613b7aa01ef598e1ac5b28 (patch) | |
tree | 4a8889592e2290160926ede70aa0cf37bd93519f /app/models/discussion.rb | |
parent | c5f1b8346860aa764369a3d156047c9e2c7317ca (diff) |
Add reply to notes to turn into discussions
Diffstat (limited to 'app/models/discussion.rb')
-rw-r--r-- | app/models/discussion.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/discussion.rb b/app/models/discussion.rb index dbc7b6e67be..f2678e0597d 100644 --- a/app/models/discussion.rb +++ b/app/models/discussion.rb @@ -17,6 +17,8 @@ class Discussion :for_commit?, :for_merge_request?, + :save, + to: :first_note def project_id @@ -116,6 +118,10 @@ class Discussion false end + def can_convert_to_discussion? + false + end + def new_discussion? notes.length == 1 end |