fix error "undefined method delayed_add_job_to_abf_worker_queue for nil:NilClass"

This commit is contained in:
Alexander Machehin 2014-08-28 18:56:43 +06:00
parent 0eebae97b3
commit 74bd058e68
1 changed files with 1 additions and 1 deletions

View File

@ -601,7 +601,7 @@ class BuildList < ActiveRecord::Base
if task
build_list = BuildList.where(id: task['args'][0]['id']).first
build_list.delayed_add_job_to_abf_worker_queue
build_list.delayed_add_job_to_abf_worker_queue if build_list.present?
build_list
end
end