Commit 8d9db34148fc9f36292458cef1733a1fc28f3d81
- Date: Wed May 07 16:48:40 +0000 2008
- Committer: David A. Cuadrado (krawek@gmail.com)
- Author: David A. Cuadrado (krawek@gmail.com)
- Commit SHA1: 8d9db34148fc9f36292458cef1733a1fc28f3d81
- Tree SHA1: 98343f70a2b3683b8b51b67101dc8c83fd2e5704
convert the commit id to string because Comment#sha1 is a string (postgres 8.3 compat)
Signed-off-by: David A. Cuadrado <krawek@gmail.com>
Commit diff
| |   |
| 11 | 11 | @git = @repository.git |
| 12 | 12 | @commit = @git.commit(params[:id]) |
| 13 | 13 | @diffs = @commit.diffs |
| 14 | | @comment_count = @repository.comments.count(:all, :conditions => {:sha1 => @commit.id}) |
| 14 | @comment_count = @repository.comments.count(:all, :conditions => {:sha1 => @commit.id.to_s}) |
| 15 | 15 | respond_to do |format| |
| 16 | 16 | format.html |
| 17 | 17 | # TODO: format.diff { render :content_type => "text/plain" } |
| toggle raw diff |
--- a/app/controllers/commits_controller.rb
+++ b/app/controllers/commits_controller.rb
@@ -11,7 +11,7 @@ class CommitsController < ApplicationController
@git = @repository.git
@commit = @git.commit(params[:id])
@diffs = @commit.diffs
- @comment_count = @repository.comments.count(:all, :conditions => {:sha1 => @commit.id})
+ @comment_count = @repository.comments.count(:all, :conditions => {:sha1 => @commit.id.to_s})
respond_to do |format|
format.html
# TODO: format.diff { render :content_type => "text/plain" } |