[refs #90] fix updating pull

This commit is contained in:
Alexander Machehin 2012-10-05 23:32:29 +06:00
parent 49946f4f53
commit 3513d47be6
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class ActivityFeedObserver < ActiveRecord::Observer
when 'GitHook'
return unless record.project
record.project.pull_requests.needed_checking.each {|pull| pull.check}
PullRequest.where("from_project_id = ? OR to_project_id = ?", record.project, record.project).needed_checking.each {|pull| pull.check}
change_type = record.change_type
branch_name = record.refname.split('/').last