summaryrefslogtreecommitdiff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-15 21:06:14 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-15 21:06:14 +0000
commitae50a43c43229442e5ccef4034d62df8a3c36cbc (patch)
tree6ed44a0e6515275719e1ba744baf457fe3044793 /app/models/concerns
parenteca3cd3a9e7d9ea680086cad8150050ec8cdef3f (diff)
downloadgitlab-ce-ae50a43c43229442e5ccef4034d62df8a3c36cbc.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/concerns')
-rw-r--r--app/models/concerns/ci/processable.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/concerns/ci/processable.rb b/app/models/concerns/ci/processable.rb
index 268fa8ec692..ed0087f34d4 100644
--- a/app/models/concerns/ci/processable.rb
+++ b/app/models/concerns/ci/processable.rb
@@ -8,6 +8,14 @@ module Ci
#
#
module Processable
+ extend ActiveSupport::Concern
+
+ included do
+ has_many :needs, class_name: 'Ci::BuildNeed', foreign_key: :build_id, inverse_of: :build
+
+ accepts_nested_attributes_for :needs
+ end
+
def schedulable?
raise NotImplementedError
end