Fix for "undefined method `<<' for nil:NilClass"

This commit is contained in:
Vladimir Sharshov 2012-01-24 01:12:42 +04:00
parent c3f415e90c
commit 7e1a26000e
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Project < ActiveRecord::Base
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.repositories.find_by_name('main').id
bl.include_repos = [platform.repositories.find_by_name('main').id]
end
end