summaryrefslogtreecommitdiff
path: root/app/models/discussion.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-04-06 10:05:57 -0500
committerDouwe Maan <douwe@selenight.nl>2017-04-06 10:51:45 -0500
commitcc656a11992483911cefe035d579096581cfde57 (patch)
tree5af4a41d9ae36b3900fdfa0b312b125995c8818c /app/models/discussion.rb
parent64c1735c22871d94e0bda8b9f5aece2a29739236 (diff)
downloadgitlab-ce-cc656a11992483911cefe035d579096581cfde57.tar.gz
Refactor resolvability checks based on type
Diffstat (limited to 'app/models/discussion.rb')
-rw-r--r--app/models/discussion.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/discussion.rb b/app/models/discussion.rb
index 8268a140403..2c0e6379e6a 100644
--- a/app/models/discussion.rb
+++ b/app/models/discussion.rb
@@ -1,4 +1,6 @@
# A non-diff discussion on an issue, merge request, commit, or snippet, consisting of `DiscussionNote` notes.
+#
+# A discussion of this type can be resolvable.
class Discussion
include ResolvableDiscussion
@@ -54,6 +56,10 @@ class Discussion
nil
end
+ def self.note_class
+ DiscussionNote
+ end
+
def initialize(notes, noteable = nil)
@notes = notes
@noteable = noteable