diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2018-03-30 20:27:03 +0300 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2018-04-05 14:29:57 +0300 |
commit | c1946364707947f56048cc00caa6d67fe635f3c7 (patch) | |
tree | 107096b44758bf8872bd60d41ed1ab8ab4e86c14 /app/models | |
parent | 166b4575a6353668c894fea0ba234d0b371dee03 (diff) |
Better group support notes-related code
Updates notes-related services and rendering so this code can be
easily used for group-scoped resources (specifically Epics).
Related to gitlab-ee!5205
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 0f5fb529a87..19bd41a34be 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -313,6 +313,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. |