Commit 501ca8e6 authored by randx's avatar randx

Fix compare crash after decorator refactoring

parent 0296121f
......@@ -52,6 +52,8 @@ class CommitsController < ApplicationController
@commit = result[:commit]
@diffs = result[:diffs]
@line_notes = []
@commits = CommitDecorator.decorate(@commits)
end
def patch
......
......@@ -24,8 +24,9 @@
- unless @commits.empty?
%h4 Commits (#{@commits.count})
%ul.unstyled= render @commits
%div.ui-box
%h5.small Commits (#{@commits.count})
%ul.unstyled= render @commits
- unless @diffs.empty?
%h4 Diff
......
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