Add doc to Spree::CheckoutController to make it more obvious why this controller exists

This commit is contained in:
luisramos0
2020-02-07 11:47:01 +00:00
parent 43280da187
commit 858d2cc6c2

View File

@@ -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