From 858d2cc6c29570229866296ebab017bdd4b208dc Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Fri, 7 Feb 2020 11:47:01 +0000 Subject: [PATCH] Add doc to Spree::CheckoutController to make it more obvious why this controller exists --- app/controllers/spree/checkout_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/controllers/spree/checkout_controller.rb b/app/controllers/spree/checkout_controller.rb index 106a4015f4..71a45de4e6 100644 --- a/app/controllers/spree/checkout_controller.rb +++ b/app/controllers/spree/checkout_controller.rb @@ -1,5 +1,11 @@ # frozen_string_literal: true +# This controller (and respective route in the Spree engine) +# is only needed for the spree_paypal_express gem that redirects here explicitly. +# +# According to the rails docs it would be possible to redirect +# to CheckoutController directly in the routes +# with a slash like "to: '/checkout#edit'", but it does not work in this case. module Spree class CheckoutController < Spree::StoreController def edit