BigW Consortium Gitlab

note_on_diff.rb 470 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
module NoteOnDiff
  extend ActiveSupport::Concern

  def diff_note?
    true
  end

  def diff_file
    raise NotImplementedError
  end

  def diff_line
    raise NotImplementedError
  end

  def for_line?(line)
    raise NotImplementedError
  end

20 21 22 23
  def original_line_code
    raise NotImplementedError
  end

24 25 26 27 28 29 30
  def diff_attributes
    raise NotImplementedError
  end

  def can_be_award_emoji?
    false
  end
31 32 33 34

  def to_discussion
    Discussion.new([self])
  end
35
end