Commit 501ca8e6 authored by randx's avatar randx

Fix compare crash after decorator refactoring

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