[refs #114] fix notification for committer

This commit is contained in:
Alexander Machehin 2012-01-22 22:17:08 +06:00
parent ab081d3c46
commit f0d7ed0d89
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class Subscribe < ActiveRecord::Base
if commentable_class == Grit::Commit
subscribes = comment.project.commit_comments_subscribes(true) # FIXME (true) for rspec
committer = User.where(:email => comment.commentable.committer.email).first
UserMailer.delay.new_comment_notification(comment, user) if committer && committer.notifier.new_comment_commit_owner && subscribes.where(:user_id => committer).empty?
UserMailer.delay.new_comment_notification(comment, committer) if committer && committer.notifier.new_comment_commit_owner && subscribes.where(:user_id => committer).empty?
end
subscribes.each do |subscribe|
user = subscribe.user