From 7f14958a893e82de8c3c677a586bf03d398d3dff Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Fri, 21 Dec 2012 16:23:46 +0400 Subject: [PATCH] #794: send repository_id to resque job --- app/models/build_list.rb | 5 ++++- app/models/project.rb | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/models/build_list.rb b/app/models/build_list.rb index 9883d6665..1b9b86762 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -292,7 +292,10 @@ class BuildList < ActiveRecord::Base :platform_path => platform_path, :released => save_to_platform.released }, - :repository_name => save_to_repository.name, + :repository => { + :name => save_to_repository.name, + :id => save_to_repository.id + }, :time_living => 2400 # 40 min }] ) diff --git a/app/models/project.rb b/app/models/project.rb index 49a408a3b..346e4f2a4 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -239,7 +239,7 @@ class Project < ActiveRecord::Base :platform_path => platform_path, :released => platform.released }, - :repository_name => repository.name, + :repository => { :name => repository.name, :id => repository.id }, :cleanup => true, :save_results => false, :time_living => 2400 # 40 min