diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-03-15 18:14:58 -0600 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-05 17:44:14 +0100 |
commit | f6f6aaf593dc40c79b8e3536f5e2821c96b9dcd3 (patch) | |
tree | 2291c4c92889f11e1bdbabe640205debb1e88029 /app/models/discussion.rb | |
parent | 76aa0bedd7ed3aaaeab9402b78261917df66de10 (diff) | |
download | gitlab-ce-f6f6aaf593dc40c79b8e3536f5e2821c96b9dcd3.tar.gz |
Better notification emails for notes and (diff) discussions
Diffstat (limited to 'app/models/discussion.rb')
-rw-r--r-- | app/models/discussion.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/discussion.rb b/app/models/discussion.rb index 314aea2c63a..8ab9031e42c 100644 --- a/app/models/discussion.rb +++ b/app/models/discussion.rb @@ -87,6 +87,10 @@ class Discussion false end + def new_discussion? + notes.length == 1 + end + def potentially_resolvable? first_note.for_merge_request? end |