summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-21 15:23:20 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-24 12:30:36 +0200
commite739eb036df23db4a03681190bf07ba0b8f1302c (patch)
tree599e01be53f1818f2d7260734fc0dd4fab71dcff /app/models/note.rb
parent0ff778c0f4a3b599d0f36a1deee5607d03e52b9a (diff)
downloadgitlab-ce-e739eb036df23db4a03681190bf07ba0b8f1302c.tar.gz
Move participants method to shared Participable concern.
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 26739426a88..e1cd971132b 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -23,10 +23,12 @@ require 'file_size_validator'
class Note < ActiveRecord::Base
include Mentionable
include Gitlab::CurrentSettings
+ include Participable
default_value_for :system, false
attr_mentionable :note
+ participant :author, :mentioned_users
belongs_to :project
belongs_to :noteable, polymorphic: true