Class: BatchCreateJob
- Inherits:
-
Hyrax::ApplicationJob
- Object
- ActiveJob::Base
- Hyrax::ApplicationJob
- BatchCreateJob
- Defined in:
- app/jobs/batch_create_job.rb
Instance Method Summary collapse
-
#perform(user, titles, resource_types, uploaded_files, attributes, operation) ⇒ Object
This copies metadata from the passed in attribute to all of the works that are members of the given upload set.
Instance Method Details
#perform(user, titles, resource_types, uploaded_files, attributes, operation) ⇒ Object
This copies metadata from the passed in attribute to all of the works that are members of the given upload set
17 18 19 20 21 22 |
# File 'app/jobs/batch_create_job.rb', line 17 def perform(user, titles, resource_types, uploaded_files, attributes, operation) operation.performing! titles ||= {} resource_types ||= {} create(user, titles, resource_types, uploaded_files, attributes, operation) end |