diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/generators/solidus_subscriptions/install/templates/initializer.rb | 8 | ||||
-rw-r--r-- | lib/solidus_subscriptions/configuration.rb | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/generators/solidus_subscriptions/install/templates/initializer.rb b/lib/generators/solidus_subscriptions/install/templates/initializer.rb index faf03f4..31e44b5 100644 --- a/lib/generators/solidus_subscriptions/install/templates/initializer.rb +++ b/lib/generators/solidus_subscriptions/install/templates/initializer.rb @@ -32,16 +32,16 @@ SolidusSubscriptions.configure do |config| # subclass from the the dispatcher you are replacing and call `super` from within `#dispatch`. # This handler is called when a subscription order is successfully placed. - # config.success_dispatcher_class = 'SolidusSubscriptions::SuccessDispatcher' + # config.success_dispatcher_class = 'SolidusSubscriptions::Dispatcher::SuccessDispatcher' # This handler is called when a group of installments fails to be processed. - # config.failure_dispatcher_class = 'SolidusSubscriptions::FailureDispatcher' + # config.failure_dispatcher_class = 'SolidusSubscriptions::Dispatcher::FailureDispatcher' # This handler is called when a payment fails on a subscription order. - # config.payment_failed_dispatcher_class = 'SolidusSubscriptions::PaymentFailedDispatcher' + # config.payment_failed_dispatcher_class = 'SolidusSubscriptions::Dispatcher::PaymentFailedDispatcher' # This handler is called when there isn't enough stock to fulfill an installment. - # config.out_of_stock_dispatcher = 'SolidusSubscriptions::OutOfStockDispatcher' + # config.out_of_stock_dispatcher = 'SolidusSubscriptions::Dispatcher::OutOfStockDispatcher' # ===================================== Permitted attributes ===================================== # diff --git a/lib/solidus_subscriptions/configuration.rb b/lib/solidus_subscriptions/configuration.rb index 52c8fd4..536aad3 100644 --- a/lib/solidus_subscriptions/configuration.rb +++ b/lib/solidus_subscriptions/configuration.rb @@ -15,22 +15,22 @@ module SolidusSubscriptions ) def success_dispatcher_class - @success_dispatcher_class ||= 'SolidusSubscriptions::SuccessDispatcher' + @success_dispatcher_class ||= 'SolidusSubscriptions::Dispatcher::SuccessDispatcher' @success_dispatcher_class.constantize end def failure_dispatcher_class - @failure_dispatcher_class ||= 'SolidusSubscriptions::FailureDispatcher' + @failure_dispatcher_class ||= 'SolidusSubscriptions::Dispatcher::FailureDispatcher' @failure_dispatcher_class.constantize end def payment_failed_dispatcher_class - @payment_failed_dispatcher_class ||= 'SolidusSubscriptions::PaymentFailedDispatcher' + @payment_failed_dispatcher_class ||= 'SolidusSubscriptions::Dispatcher::PaymentFailedDispatcher' @payment_failed_dispatcher_class.constantize end def out_of_stock_dispatcher_class - @out_of_stock_dispatcher_class ||= 'SolidusSubscriptions::OutOfStockDispatcher' + @out_of_stock_dispatcher_class ||= 'SolidusSubscriptions::Dispatcher::OutOfStockDispatcher' @out_of_stock_dispatcher_class.constantize end |