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