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