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.
This commit is contained in:
Kerri Miller 2019-06-02 10:23:53 -07:00
parent 675b8d454d
commit f44eba8c0e

View file

@ -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