BigW Consortium Gitlab

note_on_diff.rb 565 Bytes
Newer Older
Douwe Maan committed
1
# Contains functionality shared between `DiffNote` and `LegacyDiffNote`.
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
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

21 22 23 24
  def original_line_code
    raise NotImplementedError
  end

25 26 27
  def diff_attributes
    raise NotImplementedError
  end
28

Douwe Maan committed
29 30 31 32
  def active?(diff_refs = nil)
    raise NotImplementedError
  end

33 34 35
  def created_at_diff?(diff_refs)
    false
  end
36
end