BigW Consortium Gitlab

individual_note_discussion.rb 405 Bytes
Newer Older
Douwe Maan committed
1
# A discussion to wrap a single `Note` note on the root of an issue, merge request,
Douwe Maan committed
2
# commit, or snippet, that is not displayed as a discussion.
3 4
#
# A discussion of this type is never resolvable.
5
class IndividualNoteDiscussion < Discussion
6 7
  def self.note_class
    Note
8 9
  end

Douwe Maan committed
10
  def individual_note?
11 12
    true
  end
13 14 15 16

  def reply_attributes
    super.tap { |attrs| attrs.delete(:discussion_id) }
  end
17
end