From eaa6a46a43b7a7f87d04668f9ed6a6d45f4fef68 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 15 Feb 2012 19:07:56 +0600 Subject: [PATCH] [refs #96] fixed commit subscribing --- app/controllers/commit_subscribes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/commit_subscribes_controller.rb b/app/controllers/commit_subscribes_controller.rb index 4eef9eff0..35029b95f 100644 --- a/app/controllers/commit_subscribes_controller.rb +++ b/app/controllers/commit_subscribes_controller.rb @@ -27,6 +27,6 @@ class CommitSubscribesController < ApplicationController def find_commit @commit = @project.git_repository.commit(params[:commit_id]) - @options = {:project_id => @project.id, :subscribeable_id => @commit.id, :subscribeable_type => @commit.class.name, :user_id => current_user.id} + @options = {:project_id => @project.id, :subscribeable_id => @commit.id.hex, :subscribeable_type => @commit.class.name, :user_id => current_user.id} end end