Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-01-15 00:10:37 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-01-15 00:10:37 +0300
commit8f534e1e960eef1f4cfcb7c6d723840523515ffb (patch)
tree884401cb4e5db9dd9b301e57f588d17df2a92966 /app/models/diff_note.rb
parentea3306a15e945e694afba62dc93b17500ffaec7f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/diff_note.rb')
-rw-r--r--app/models/diff_note.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/diff_note.rb b/app/models/diff_note.rb
index 944a64f5419..c8a0773cc5b 100644
--- a/app/models/diff_note.rb
+++ b/app/models/diff_note.rb
@@ -111,6 +111,10 @@ class DiffNote < Note
super.merge(suggestions_filter_enabled: true)
end
+ def multiline?
+ position&.multiline?
+ end
+
private
def enqueue_diff_file_creation_job