Module: NoteOnDiff

Extended by:
ActiveSupport::Concern
Included in:
DiffNote, LegacyDiffNote
Defined in:
app/models/concerns/note_on_diff.rb

Overview

Contains functionality shared between ‘DiffNote` and `LegacyDiffNote`.

Instance Method Summary collapse

Instance Method Details

#active?(diff_refs = nil) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


27
28
29
# File 'app/models/concerns/note_on_diff.rb', line 27

def active?(diff_refs = nil)
  raise NotImplementedError
end

#created_at_diff?(diff_refs) ⇒ Boolean

Returns:

  • (Boolean)


31
32
33
# File 'app/models/concerns/note_on_diff.rb', line 31

def created_at_diff?(diff_refs)
  false
end

#diff_attributesObject

Raises:

  • (NotImplementedError)


23
24
25
# File 'app/models/concerns/note_on_diff.rb', line 23

def diff_attributes
  raise NotImplementedError
end

#diff_fileObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'app/models/concerns/note_on_diff.rb', line 11

def diff_file
  raise NotImplementedError
end

#diff_lineObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'app/models/concerns/note_on_diff.rb', line 15

def diff_line
  raise NotImplementedError
end

#diff_note?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/models/concerns/note_on_diff.rb', line 7

def diff_note?
  true
end

#original_line_codeObject

Raises:

  • (NotImplementedError)


19
20
21
# File 'app/models/concerns/note_on_diff.rb', line 19

def original_line_code
  raise NotImplementedError
end