blob: 7900af6aaacfb8537dd5fcfef2fac22652a1ea4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
module Noteable
def discussion_notes
notes
end
delegate :find_discussion, :find_original_discussion, to: :discussion_notes
def discussions
@discussions ||= discussion_notes
.inc_relations_for_view
.discussions(self)
end
def grouped_diff_discussions
notes.inc_relations_for_view.grouped_diff_discussions
end
end
|