15 lines
285 B
Ruby
15 lines
285 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateEvidenceWorker
|
|
include ApplicationWorker
|
|
|
|
feature_category :release_governance
|
|
weight 2
|
|
|
|
def perform(release_id)
|
|
release = Release.find_by_id(release_id)
|
|
return unless release
|
|
|
|
Evidence.create!(release: release)
|
|
end
|
|
end
|