build list: fix callback
This commit is contained in:
parent
3540b95127
commit
eacf67a68b
|
@ -81,8 +81,7 @@ class BuildList < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
before_validation -> {
|
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
|
}, on: :create
|
||||||
before_validation :prepare_extra_repositories, on: :create
|
before_validation :prepare_extra_repositories, on: :create
|
||||||
before_validation :prepare_extra_build_lists, on: :create
|
before_validation :prepare_extra_build_lists, on: :create
|
||||||
|
|
Loading…
Reference in New Issue