Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-03-30 20:27:03 +0300
committerJan Provaznik <jprovaznik@gitlab.com>2018-04-05 14:29:57 +0300
commitc1946364707947f56048cc00caa6d67fe635f3c7 (patch)
tree107096b44758bf8872bd60d41ed1ab8ab4e86c14 /app/models/note.rb
parent166b4575a6353668c894fea0ba234d0b371dee03 (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/note.rb')
-rw-r--r--app/models/note.rb4
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.