summaryrefslogtreecommitdiff
path: root/app/models/concerns/note_on_diff.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/note_on_diff.rb')
-rw-r--r--app/models/concerns/note_on_diff.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/concerns/note_on_diff.rb b/app/models/concerns/note_on_diff.rb
index 1a5a7007a2b..ac4c3099c00 100644
--- a/app/models/concerns/note_on_diff.rb
+++ b/app/models/concerns/note_on_diff.rb
@@ -25,4 +25,14 @@ module NoteOnDiff
def diff_attributes
raise NotImplementedError
end
+
+ private
+
+ def noteable_diff_refs
+ if noteable.respond_to?(:diff_sha_refs)
+ noteable.diff_sha_refs
+ else
+ noteable.diff_refs
+ end
+ end
end