2018-11-20 20:47:30 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
# Contains functionality shared between `DiffNote` and `LegacyDiffNote`.
|
2016-08-24 12:49:21 +05:30
|
|
|
module NoteOnDiff
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
def diff_note?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
|
|
|
def diff_file
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def diff_line
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
def original_line_code
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
def diff_attributes
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
def active?(diff_refs = nil)
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def created_at_diff?(diff_refs)
|
2016-08-24 12:49:21 +05:30
|
|
|
false
|
|
|
|
end
|
|
|
|
end
|