Commit 88933aa8 authored by Dmytro Zaporozhets (DZ)'s avatar Dmytro Zaporozhets (DZ)

Merge branch 'fix_rendering_with_dot_in_file_name_deprecation' into 'master'

Address rendering with file names including dots(.) deprecation

See merge request gitlab-org/gitlab!73379
parents 7425693f eb5a23ee
...@@ -35,7 +35,7 @@ module Issues ...@@ -35,7 +35,7 @@ module Issues
def render_description(vulnerability) def render_description(vulnerability)
ApplicationController.render( ApplicationController.render(
template: 'vulnerabilities/issue_description.md.erb', template: 'vulnerabilities/issue_description',
locals: { vulnerability: vulnerability } locals: { vulnerability: vulnerability }
) )
end end
......
...@@ -67,7 +67,7 @@ module MergeRequests ...@@ -67,7 +67,7 @@ module MergeRequests
# This currently applies only the first diff # This currently applies only the first diff
render_template( render_template(
file: 'vulnerabilities/remediation.patch.erb', file: 'vulnerabilities/remediation',
locals: { locals: {
diff: diffs.first, diff: diffs.first,
head_commit: head_commit, head_commit: head_commit,
...@@ -79,7 +79,7 @@ module MergeRequests ...@@ -79,7 +79,7 @@ module MergeRequests
def render_description(vulnerability) def render_description(vulnerability)
render_template( render_template(
file: 'vulnerabilities/merge_request_description.md.erb', file: 'vulnerabilities/merge_request_description',
locals: { vulnerability: vulnerability } locals: { vulnerability: vulnerability }
) )
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment