Fix compare crash after decorator refactoring

This commit is contained in:
randx 2012-07-25 21:45:53 +03:00
parent 0296121f08
commit 501ca8e6e8
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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