2017-03-31 03:06:09 +00:00
|
|
|
# A discussion on merge request or commit diffs consisting of `LegacyDiffNote` notes
|
2017-03-31 00:38:21 +00:00
|
|
|
class LegacyDiffDiscussion < Discussion
|
|
|
|
include DiscussionOnDiff
|
2017-03-10 01:29:11 +00:00
|
|
|
|
|
|
|
def legacy_diff_discussion?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
2017-03-17 19:25:52 +00:00
|
|
|
# Keep this method in sync with the `potentially_resolvable` scope on `ResolvableNote`
|
2017-03-10 01:29:11 +00:00
|
|
|
def potentially_resolvable?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
|
|
|
def collapsed?
|
|
|
|
!active?
|
|
|
|
end
|
2017-03-31 00:38:21 +00:00
|
|
|
|
|
|
|
def reply_attributes
|
|
|
|
super.merge(line_code: line_code)
|
|
|
|
end
|
2017-03-10 01:29:11 +00:00
|
|
|
end
|