diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-04-05 15:41:01 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-04-05 15:41:01 +0300 |
commit | 63a1a57024e54ff6aee1f099ca7b431a7bb0e669 (patch) | |
tree | 2cc4cf8dc4fe6a874edfe763d9a498cb41f7f457 /app/models | |
parent | f9607db7a4db87b07ed2f2634794f99084a6534d (diff) | |
parent | c1946364707947f56048cc00caa6d67fe635f3c7 (diff) |
Merge branch 'jprovazn-comment-refs' into 'master'
Better group support in notes-related code
See merge request gitlab-org/gitlab-ce!18150
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/note.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 109405d3f17..e426f84832b 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -317,6 +317,10 @@ class Note < ActiveRecord::Base !system? && !for_snippet? end + def can_create_notification? + true + end + def discussion_class(noteable = nil) # When commit notes are rendered on an MR's Discussion page, they are # displayed in one discussion instead of individually. |