summaryrefslogtreecommitdiff
path: root/app/models/diff_note.rb
diff options
context:
space:
mode:
authorKerri Miller <kerrizor@kerrizor.com>2019-06-02 10:23:53 -0700
committerKerri Miller <kerrizor@kerrizor.com>2019-06-05 12:09:00 -0700
commitf44eba8c0e537362ccf362480517f12ee7c73130 (patch)
tree68c9c540a5f45e49a00536845527d2ec6020dedd /app/models/diff_note.rb
parent675b8d454dc7d52d3dec981e633e571e239f9b28 (diff)
downloadgitlab-ce-f44eba8c0e537362ccf362480517f12ee7c73130.tar.gz
Lock suggestions_filter_enabled as true
Most/all of the work we're doing in this method is done at creation/edit time, so do we need to also check at render? Assume if you've gotten to this point, it's ok to enable the suggestion filter.
Diffstat (limited to 'app/models/diff_note.rb')
-rw-r--r--app/models/diff_note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/diff_note.rb b/app/models/diff_note.rb
index 8221b7de2b6..f75c32633b1 100644
--- a/app/models/diff_note.rb
+++ b/app/models/diff_note.rb
@@ -90,7 +90,7 @@ class DiffNote < Note
end
def banzai_render_context(field)
- super.merge(project: project, suggestions_filter_enabled: supports_suggestion?)
+ super.merge(suggestions_filter_enabled: true)
end
private