diff --git a/app/decorators/controllers/solidus_paypal_braintree/checkout_controller_decorator.rb b/app/decorators/controllers/solidus_paypal_braintree/checkout_controller_decorator.rb index 78793498..803e0b10 100644 --- a/app/decorators/controllers/solidus_paypal_braintree/checkout_controller_decorator.rb +++ b/app/decorators/controllers/solidus_paypal_braintree/checkout_controller_decorator.rb @@ -6,6 +6,6 @@ def self.prepended(base) base.helper ::SolidusPaypalBraintree::BraintreeCheckoutHelper end - ::Spree::CheckoutController.prepend(self) + ::Spree::CheckoutController.prepend(self) if SolidusSupport.frontend_available? end end diff --git a/app/decorators/controllers/solidus_paypal_braintree/orders_controller_decorator.rb b/app/decorators/controllers/solidus_paypal_braintree/orders_controller_decorator.rb index 82a161cf..5ccbfb38 100644 --- a/app/decorators/controllers/solidus_paypal_braintree/orders_controller_decorator.rb +++ b/app/decorators/controllers/solidus_paypal_braintree/orders_controller_decorator.rb @@ -6,6 +6,6 @@ def self.prepended(base) base.helper ::SolidusPaypalBraintree::BraintreeCheckoutHelper end - ::Spree::OrdersController.prepend(self) + ::Spree::OrdersController.prepend(self) if SolidusSupport.frontend_available? end end