2017-04-04 18:27:23 -04:00
|
|
|
# Contains functionality shared between `DiffNote` and `LegacyDiffNote`.
|
2016-06-20 13:15:44 -04:00
|
|
|
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
|
|
|
|
|
2016-08-19 13:38:40 -04:00
|
|
|
def original_line_code
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2016-06-20 13:15:44 -04:00
|
|
|
def diff_attributes
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
2017-03-31 19:39:14 -04:00
|
|
|
|
2017-04-08 15:58:08 -04:00
|
|
|
def active?(diff_refs = nil)
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2017-04-30 16:32:09 -04:00
|
|
|
def created_at_diff?(diff_refs)
|
|
|
|
false
|
|
|
|
end
|
2016-06-20 13:15:44 -04:00
|
|
|
end
|