diff options
author | Alberto Vena <kennyadsl@gmail.com> | 2021-07-20 16:30:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 16:30:43 +0200 |
commit | c6c9fea5898530405dff44f5603e9191a679d1a6 (patch) | |
tree | e7e511496ad1bb7b0b0d32607cf634332192d69b /lib/solidus_subscriptions/configuration.rb | |
parent | 662719693c9f369cd9176e432ab3d4a554822751 (diff) | |
parent | 0317e228bc79c13667940203add35fa13fac21f1 (diff) |
Merge pull request #235 from solidusio-contrib/kennyadsl/log-installments-errors-by-defaultHEADmaster
Log installments errors by default
Diffstat (limited to 'lib/solidus_subscriptions/configuration.rb')
-rw-r--r-- | lib/solidus_subscriptions/configuration.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/solidus_subscriptions/configuration.rb b/lib/solidus_subscriptions/configuration.rb index 9d6c3d2..350fabc 100644 --- a/lib/solidus_subscriptions/configuration.rb +++ b/lib/solidus_subscriptions/configuration.rb @@ -4,14 +4,14 @@ module SolidusSubscriptions class Configuration attr_accessor( :maximum_total_skips, :maximum_reprocessing_time, :churn_buster_account_id, - :churn_buster_api_key, :clear_past_installments, :processing_error_handler + :churn_buster_api_key, :clear_past_installments ) attr_writer( :success_dispatcher_class, :failure_dispatcher_class, :payment_failed_dispatcher_class, :out_of_stock_dispatcher, :maximum_successive_skips, :reprocessing_interval, :minimum_cancellation_notice, :processing_queue, :subscription_line_item_attributes, - :subscription_attributes, :subscribable_class, :order_creator_class + :subscription_attributes, :subscribable_class, :order_creator_class, :processing_error_handler ) def success_dispatcher_class @@ -34,6 +34,11 @@ module SolidusSubscriptions @out_of_stock_dispatcher_class.constantize end + def processing_error_handler + @processing_error_handler ||= 'SolidusSubscriptions::ProcessingErrorHandlers::RailsLogger' + @processing_error_handler.constantize + end + def maximum_successive_skips @maximum_successive_skips ||= 1 end |