Class: CdmMigrator::BatchCreateWorksJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- CdmMigrator::BatchCreateWorksJob
- Defined in:
- app/jobs/cdm_migrator/batch_create_works_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(ingest, user) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/jobs/cdm_migrator/batch_create_works_job.rb', line 5 def perform(ingest, user) ingest.data.each do |w| ingest_work = IngestWork.new(w, ingest.id) ingest_work.save! CreateWorkJob.perform_later ingest_work, user, ingest.admin_set_id, ingest.collection_id end end |