From 7a22367b4a0f4b39429a54ae3f4f61e1bcce2faa Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Sat, 31 Oct 2020 11:19:03 +0000 Subject: [PATCH] Make controllers use ::Basecontroller instead of StoreController --- app/controllers/checkout_controller.rb | 2 +- app/controllers/spree/checkout_controller.rb | 2 +- app/controllers/spree/orders_controller.rb | 2 +- app/controllers/spree/users_controller.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/checkout_controller.rb b/app/controllers/checkout_controller.rb index 4cedfbbac9..ca7df8be49 100644 --- a/app/controllers/checkout_controller.rb +++ b/app/controllers/checkout_controller.rb @@ -2,7 +2,7 @@ require 'open_food_network/address_finder' -class CheckoutController < Spree::StoreController +class CheckoutController < ::BaseController layout 'darkswarm' include OrderStockCheck diff --git a/app/controllers/spree/checkout_controller.rb b/app/controllers/spree/checkout_controller.rb index 71a45de4e6..e639505e29 100644 --- a/app/controllers/spree/checkout_controller.rb +++ b/app/controllers/spree/checkout_controller.rb @@ -7,7 +7,7 @@ # 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 + class CheckoutController < ::BaseController def edit flash.keep redirect_to main_app.checkout_path diff --git a/app/controllers/spree/orders_controller.rb b/app/controllers/spree/orders_controller.rb index 616300c2b1..48e65ddbb1 100644 --- a/app/controllers/spree/orders_controller.rb +++ b/app/controllers/spree/orders_controller.rb @@ -1,5 +1,5 @@ module Spree - class OrdersController < Spree::StoreController + class OrdersController < ::BaseController include OrderCyclesHelper include Rails.application.routes.url_helpers diff --git a/app/controllers/spree/users_controller.rb b/app/controllers/spree/users_controller.rb index c6ce064b57..1fb03af1f9 100644 --- a/app/controllers/spree/users_controller.rb +++ b/app/controllers/spree/users_controller.rb @@ -1,5 +1,5 @@ module Spree - class UsersController < Spree::StoreController + class UsersController < ::BaseController layout 'darkswarm' ssl_required skip_before_action :set_current_order, only: :show