diff options
author | Alessandro Desantis <desa.alessandro@gmail.com> | 2021-01-20 10:37:31 +0100 |
---|---|---|
committer | Alessandro Desantis <desa.alessandro@gmail.com> | 2021-01-30 15:23:41 +0100 |
commit | b4cd6b6e177df2603f370e050db291090668965e (patch) | |
tree | 27a08f5eb4fedbb2ec2952fe11c8868b6ea78f54 /app | |
parent | 784c1f07c61964c1a05549bffb0a709763bcf2d6 (diff) |
Set queue on `ProcessInstallmentJob` dynamically
By setting the queue through a block rather than a boot-time method
call, we ensure to play nicely with configuration stubs and in other
non-obvious scenarios.
Diffstat (limited to 'app')
-rw-r--r-- | app/jobs/solidus_subscriptions/process_installment_job.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/jobs/solidus_subscriptions/process_installment_job.rb b/app/jobs/solidus_subscriptions/process_installment_job.rb index 17eb446..127c787 100644 --- a/app/jobs/solidus_subscriptions/process_installment_job.rb +++ b/app/jobs/solidus_subscriptions/process_installment_job.rb @@ -2,7 +2,7 @@ module SolidusSubscriptions class ProcessInstallmentJob < ApplicationJob - queue_as SolidusSubscriptions.configuration.processing_queue + queue_as { SolidusSubscriptions.configuration.processing_queue } def perform(installment) Checkout.new(installment).process |