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,7 +24,8 @@
- unless @commits.empty?
%h4 Commits (#{@commits.count})
%div.ui-box
%h5.small Commits (#{@commits.count})
%ul.unstyled= render @commits
- unless @diffs.empty?
......
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