Commit 29f03fb2 authored by Siddharth Asthana's avatar Siddharth Asthana

Pass formats explicitly when rendering html

Changelog: other
parent 7d3e3a44
......@@ -27,10 +27,12 @@ module CommitsHelper
end
def commit_to_html(commit, ref, project)
render 'projects/commits/commit.html',
commit: commit,
ref: ref,
project: project
render partial: 'projects/commits/commit', formats: :html,
locals: {
commit: commit,
ref: ref,
project: project
}
end
# Breadcrumb links for a Project and, if applicable, a tree path
......
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