#405: attach build_lists from extra_mass_builds

This commit is contained in:
Vokhmin Alexey V 2014-07-01 00:46:16 +04:00
parent de2d08946f
commit bb1e11e256
1 changed files with 5 additions and 0 deletions

View File

@ -689,6 +689,11 @@ class BuildList < ActiveRecord::Base
end
def prepare_extra_build_lists
if mass_build && mass_build.extra_mass_builds.present?
extra_build_lists ||= []
extra_build_lists << BuildList.where(mass_build_id: mass_build.extra_mass_builds, arch_id: arch_id).pluck(:id)
extra_build_lists.flatten!
end
return if extra_build_lists.blank?
bls = BuildList.for_extra_build_lists(extra_build_lists, current_ability, save_to_platform)
if save_to_platform