diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-17 18:06:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-17 18:06:17 +0300 |
commit | 238d22c07218adf2b8f3db630ee8b74ca6f29df5 (patch) | |
tree | 23fd5f85efef0fb95eb73bf6395d5b7e8c0f1b9f /app/workers/create_evidence_worker.rb | |
parent | 6b75320f525f841454f1ab162d141d3610f2e77b (diff) |
Add latest changes from gitlab-org/gitlab@masterlist
Diffstat (limited to 'app/workers/create_evidence_worker.rb')
-rw-r--r-- | app/workers/create_evidence_worker.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/workers/create_evidence_worker.rb b/app/workers/create_evidence_worker.rb new file mode 100644 index 00000000000..5fc901ae514 --- /dev/null +++ b/app/workers/create_evidence_worker.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +class CreateEvidenceWorker + include ApplicationWorker + + def perform(release_id) + release = Release.find_by_id(release_id) + return unless release + + Evidence.create!(release: release) + end +end |