lib/solidus_afterpay/configuration.rb in solidus_afterpay-0.2.0 vs lib/solidus_afterpay/configuration.rb in solidus_afterpay-0.3.0

- old
+ new

@@ -39,9 +39,16 @@ return ::Spree::Api::BaseController if configuration.use_solidus_api SolidusAfterpay::BaseController end - delegate :shipping_rate_builder_service_class, to: :configuration - delegate :update_order_attributes_service_class, to: :configuration + # rubocop:disable Rails/Delegate + def shipping_rate_builder_service_class + configuration.shipping_rate_builder_service_class + end + + def update_order_attributes_service_class + configuration.update_order_attributes_service_class + end + # rubocop:enable Rails/Delegate end end