Class: MassEncryption::BatchEncryptionJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- MassEncryption::BatchEncryptionJob
- Defined in:
- app/jobs/mass_encryption/batch_encryption_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(batch, auto_enqueue_next: true) ⇒ Object
2 3 4 5 6 7 |
# File 'app/jobs/mass_encryption/batch_encryption_job.rb', line 2 def perform(batch, auto_enqueue_next: true) if batch.present? batch.encrypt_now self.class.perform_later batch.next if auto_enqueue_next end end |