build list: fix callback

This commit is contained in:
Alexander Machehin 2015-03-26 21:17:45 +05:00
parent 3540b95127
commit eacf67a68b
1 changed files with 1 additions and 2 deletions

View File

@ -81,8 +81,7 @@ class BuildList < ActiveRecord::Base
end
}
before_validation -> {
self.include_repos = []
(self.include_repos << include_repos).flatten.uniq if include_repos.present?
(self.include_repos = [] << include_repos).flatten.uniq if include_repos.present?
}, on: :create
before_validation :prepare_extra_repositories, on: :create
before_validation :prepare_extra_build_lists, on: :create