mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Replace usages of Spree::BaseController with ApplicationController
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module Spree
|
||||
module Admin
|
||||
class BaseController < Spree::BaseController
|
||||
class BaseController < ApplicationController
|
||||
ssl_required
|
||||
|
||||
helper 'spree/admin/navigation'
|
||||
|
||||
@@ -16,7 +16,7 @@ module ActionController
|
||||
|
||||
# Fix spree issues #3531 and #2210 (patch provided by leiyangyou)
|
||||
if (defined_response = collector.response) &&
|
||||
!Spree::BaseController.spree_responders[self.class.to_s.to_sym].try(:[],
|
||||
!ApplicationController.spree_responders[self.class.to_s.to_sym].try(:[],
|
||||
action_name.to_sym)
|
||||
if action = options.delete(:action)
|
||||
render action: action
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Spree::BaseController.include(Spree::ViewContext)
|
||||
ApplicationController.include(Spree::ViewContext)
|
||||
|
||||
@@ -10,7 +10,7 @@ module Spree
|
||||
class_name = controller.class.name.to_sym
|
||||
action_name = options.delete(:action_name)
|
||||
|
||||
result = Spree::BaseController.spree_responders[class_name].
|
||||
result = ApplicationController.spree_responders[class_name].
|
||||
try(:[], action_name).
|
||||
try(:[], self.format.to_sym)
|
||||
return unless result
|
||||
|
||||
Reference in New Issue
Block a user