gitlab-org--gitlab-foss/app/models/concerns/note_on_diff.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
537 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-04-04 18:27:23 -04:00
# Contains functionality shared between `DiffNote` and `LegacyDiffNote`.
module NoteOnDiff
extend ActiveSupport::Concern
def diff_note?
true
end
def diff_file
raise NotImplementedError
end
def diff_line
raise NotImplementedError
end
def original_line_code
raise NotImplementedError
end
def diff_attributes
raise NotImplementedError
end
2017-04-08 15:58:08 -04:00
def active?(diff_refs = nil)
raise NotImplementedError
end
def created_at_diff?(diff_refs)
false
end
end