blob: 22912b30c6aa83e3c87d8076353d6c9a51e401a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# A discussion on merge request or commit diffs consisting of `DiffNote` notes.
class DiffDiscussion < Discussion
include DiscussionOnDiff
delegate :position,
:original_position,
to: :first_note
def legacy_diff_discussion?
false
end
def reply_attributes
super.merge(
original_position: original_position.to_json,
position: position.to_json,
)
end
end
|