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
- #active?(diff_refs = nil) ⇒ Boolean
- #created_at_diff?(diff_refs) ⇒ Boolean
- #diff_attributes ⇒ Object
- #diff_file ⇒ Object
- #diff_line ⇒ Object
- #diff_note? ⇒ Boolean
- #original_line_code ⇒ Object
Instance Method Details
#active?(diff_refs = nil) ⇒ Boolean
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
31 32 33 |
# File 'app/models/concerns/note_on_diff.rb', line 31 def created_at_diff?(diff_refs) false end |
#diff_attributes ⇒ Object
23 24 25 |
# File 'app/models/concerns/note_on_diff.rb', line 23 def diff_attributes raise NotImplementedError end |
#diff_file ⇒ Object
11 12 13 |
# File 'app/models/concerns/note_on_diff.rb', line 11 def diff_file raise NotImplementedError end |
#diff_line ⇒ Object
15 16 17 |
# File 'app/models/concerns/note_on_diff.rb', line 15 def diff_line raise NotImplementedError end |
#diff_note? ⇒ Boolean
7 8 9 |
# File 'app/models/concerns/note_on_diff.rb', line 7 def diff_note? true end |
#original_line_code ⇒ Object
19 20 21 |
# File 'app/models/concerns/note_on_diff.rb', line 19 def original_line_code raise NotImplementedError end |