diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-04-18 18:35:39 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-04-18 18:35:39 +0300 |
commit | 0d70dd6c48bed0f14b095521087c8b189b6b56fa (patch) | |
tree | f979d5a708e35adaa2a2183dcec6d96982d265bd /app/models/ci/pipeline.rb | |
parent | b32eabb153911b78d7ad1f6c8e3edfde482dd56a (diff) |
Accept nested Variables in Ci::Pipeline
Diffstat (limited to 'app/models/ci/pipeline.rb')
-rw-r--r-- | app/models/ci/pipeline.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index 434b9b64c65..52749c8bf7c 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -32,6 +32,8 @@ module Ci has_many :auto_canceled_pipelines, class_name: 'Ci::Pipeline', foreign_key: 'auto_canceled_by_id' has_many :auto_canceled_jobs, class_name: 'CommitStatus', foreign_key: 'auto_canceled_by_id' + accepts_nested_attributes_for :variables, reject_if: :persisted? + delegate :id, to: :project, prefix: true delegate :full_path, to: :project, prefix: true |