From 1b3f986c349d60127c2fa97041cd98acb94616ac Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Sun, 15 Sep 2013 17:18:09 +0400 Subject: [PATCH] Fixed: url to scripts for building product --- app/models/product_build_list.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/product_build_list.rb b/app/models/product_build_list.rb index 20fc1e689..3f5a5b4de 100644 --- a/app/models/product_build_list.rb +++ b/app/models/product_build_list.rb @@ -3,6 +3,7 @@ class ProductBuildList < ActiveRecord::Base include Modules::Models::CommitAndVersion include Modules::Models::TimeLiving include Modules::Models::FileStoreClean + include Modules::Models::UrlHelper include AbfWorker::ModelHelper delegate :url_helpers, to: 'Rails.application.routes' @@ -151,7 +152,7 @@ class ProductBuildList < ActiveRecord::Base def abf_worker_args file_name = "#{project.name}-#{commit_hash}" - opts = {:host => ActionMailer::Base.default_url_options[:host]} + opts = default_url_options opts.merge!({:user => user.authentication_token, :password => ''}) if user.present? srcpath = url_helpers.archive_url( project.owner,