From 3cba9a16aab0d99412974abe899fdf5a175025ce Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 4 Nov 2020 18:38:32 +0000 Subject: [PATCH] Use ActionController::Base for Api::BaseController It looks like ActionController::Metal does not play nicely with the big changes to controller responders: https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#responders --- app/controllers/api/base_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb index 34f43f81c8..540c7b1fea 100644 --- a/app/controllers/api/base_controller.rb +++ b/app/controllers/api/base_controller.rb @@ -11,6 +11,7 @@ module Api include Spree::Core::ControllerHelpers::SSL include ::ActionController::Head + self.responder = ApplicationResponder respond_to :json attr_accessor :current_api_user