summaryrefslogtreecommitdiff
path: root/app/services/solidus_subscriptions/out_of_stock_dispatcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/solidus_subscriptions/out_of_stock_dispatcher.rb')
-rw-r--r--app/services/solidus_subscriptions/out_of_stock_dispatcher.rb13
1 files changed, 1 insertions, 12 deletions
diff --git a/app/services/solidus_subscriptions/out_of_stock_dispatcher.rb b/app/services/solidus_subscriptions/out_of_stock_dispatcher.rb
index b9c181e..05484f4 100644
--- a/app/services/solidus_subscriptions/out_of_stock_dispatcher.rb
+++ b/app/services/solidus_subscriptions/out_of_stock_dispatcher.rb
@@ -1,21 +1,10 @@
# frozen_string_literal: true
-# This service class is intended to provide callback behaviour to handle
-# the case where an installment cannot be processed due to lack of stock.
+# Handles installments that cannot be processed for lack of stock.
module SolidusSubscriptions
class OutOfStockDispatcher < Dispatcher
def dispatch
installments.each(&:out_of_stock)
- super
- end
-
- private
-
- def message
- "
- The following installments cannot be fulfilled due to lack of stock:
- #{installments.map(&:id).join(', ')}.
- "
end
end
end