From 733adaf111dac6daa6681d6174d69ac6bda5ed1e Mon Sep 17 00:00:00 2001 From: Vladimir Sharshov Date: Mon, 23 Jan 2012 20:19:10 +0400 Subject: [PATCH] Update build_for for new requirements --- app/models/project.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/project.rb b/app/models/project.rb index 5763fc071..6617694aa 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -58,6 +58,8 @@ class Project < ActiveRecord::Base bl.project_version = "latest_#{platform.name}" bl.build_requires = false # already set as db default bl.user = user + bl.auto_publish = true # already set as db default + bl.include_repos << Platform.find_by_id(platform).repositories.find_by_name('main').id end end