diff options
Diffstat (limited to 'app/services/solidus_subscriptions/failure_dispatcher.rb')
-rw-r--r-- | app/services/solidus_subscriptions/failure_dispatcher.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/app/services/solidus_subscriptions/failure_dispatcher.rb b/app/services/solidus_subscriptions/failure_dispatcher.rb deleted file mode 100644 index c77d4b0..0000000 --- a/app/services/solidus_subscriptions/failure_dispatcher.rb +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -# Handles failed installments. -module SolidusSubscriptions - class FailureDispatcher < Dispatcher - def dispatch - order.touch(:completed_at) - order.cancel - installments.each do |installment| - installment.failed!(order) - end - end - end -end |