Commit 8f3fa4b0 authored by Siddharth Asthana's avatar Siddharth Asthana Committed by Peter Leitzen

Pass formats explicitly when rendering .md.erb

parent 8e4c4cf0
......@@ -97,14 +97,15 @@ module EE
def render_vulnerability_description
render_to_string(
template: 'vulnerabilities/issue_description.md.erb',
template: 'vulnerabilities/issue_description',
formats: :md,
locals: { vulnerability: vulnerability.present }
)
end
def render_vulnerability_link_alert(error_message)
render_to_string(
partial: 'vulnerabilities/unable_to_link_vulnerability.html.haml',
partial: 'vulnerabilities/unable_to_link_vulnerability',
locals: {
vulnerability_link: vulnerability_path(vulnerability),
error_message: error_message
......
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