summaryrefslogtreecommitdiff
path: root/app/models/individual_note_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/individual_note_discussion.rb
parent64c1735c22871d94e0bda8b9f5aece2a29739236 (diff)
downloadgitlab-ce-cc656a11992483911cefe035d579096581cfde57.tar.gz
Refactor resolvability checks based on type
Diffstat (limited to 'app/models/individual_note_discussion.rb')
-rw-r--r--app/models/individual_note_discussion.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/individual_note_discussion.rb b/app/models/individual_note_discussion.rb
index 42318fa3d6e..c3f21c55240 100644
--- a/app/models/individual_note_discussion.rb
+++ b/app/models/individual_note_discussion.rb
@@ -1,8 +1,10 @@
# A discussion to wrap a single `Note` note on the root of an issue, merge request,
# commit, or snippet, that is not displayed as a discussion.
+#
+# A discussion of this type is never resolvable.
class IndividualNoteDiscussion < Discussion
- def potentially_resolvable?
- false
+ def self.note_class
+ Note
end
def individual_note?