diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-06 18:05:57 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-06 18:51:45 +0300 |
commit | cc656a11992483911cefe035d579096581cfde57 (patch) | |
tree | 5af4a41d9ae36b3900fdfa0b312b125995c8818c /app/models/out_of_context_discussion.rb | |
parent | 64c1735c22871d94e0bda8b9f5aece2a29739236 (diff) |
Refactor resolvability checks based on type
Diffstat (limited to 'app/models/out_of_context_discussion.rb')
-rw-r--r-- | app/models/out_of_context_discussion.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/models/out_of_context_discussion.rb b/app/models/out_of_context_discussion.rb index 31c6d5cff8b..85794630f70 100644 --- a/app/models/out_of_context_discussion.rb +++ b/app/models/out_of_context_discussion.rb @@ -2,6 +2,8 @@ # contains that commit, they are displayed as if they were a discussion. # # This represents one of those discussions, consisting of `Note` notes. +# +# A discussion of this type is never resolvable. class OutOfContextDiscussion < Discussion # Returns an array of discussion ID components def self.build_discussion_id(note) @@ -13,8 +15,8 @@ class OutOfContextDiscussion < Discussion def self.override_discussion_id(note) discussion_id(note) end - - def potentially_resolvable? - false + + def self.note_class + Note end end |