Class: BatchCreateJob
- Inherits:
-
Hyrax::ApplicationJob
- Object
- ApplicationJob
- 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
18 19 20 21 22 23 |
# File 'app/jobs/batch_create_job.rb', line 18 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 |