Fix compare crash after decorator refactoring
This commit is contained in:
parent
0296121f08
commit
501ca8e6e8
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue