From e6a3041f457580ea0aa62ffdf7cd68a7c8e79318 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 27 Mar 2021 13:10:25 +0000 Subject: [PATCH] Add admin/enterprises helper Fixes: Failure/Error: super ActionView::Template::Error: undefined method `add_check_if_single' for #<#:0x00007f446cdd68e8> # ./app/helpers/application_helper.rb:20:in `method_missing' # ./app/views/spree/admin/shared/_hubs_sidebar.html.haml:16:in `block in _app_views_spree_admin_shared__hubs_sidebar_html_haml___1973426344114200431_69965928779540' # ./app/views/spree/admin/shared/_hubs_sidebar.html.haml:11:in `each' # ./app/views/spree/admin/shared/_hubs_sidebar.html.haml:11:in `_app_views_spree_admin_shared__hubs_sidebar_html_haml___1973426344114200431_69965928779540' # ./app/views/spree/admin/payment_methods/edit.html.haml:15:in `block in _app_views_spree_admin_payment_methods_edit_html_haml__571217921761730685_69965930474120' # ./app/views/spree/admin/payment_methods/edit.html.haml:11:in `_app_views_spree_admin_payment_methods_edit_html_haml__571217921761730685_69965930474120' # ./app/controllers/admin/resource_controller.rb:23:in `block (2 levels) in edit' # ./lib/spree/core/controller_helpers/respond_with.rb:24:in `respond_with' # ./app/controllers/admin/resource_controller.rb:22:in `edit' # ./lib/open_food_network/rack_request_blocker.rb:36:in `call' # ------------------ # --- Caused by: --- # NoMethodError: # undefined method `add_check_if_single' for #<#:0x00007f446cdd68e8> # ./app/helpers/application_helper.rb:20:in `method_missing' --- app/controllers/spree/admin/base_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/spree/admin/base_controller.rb b/app/controllers/spree/admin/base_controller.rb index 6a53ad204a..1eeabc6225 100644 --- a/app/controllers/spree/admin/base_controller.rb +++ b/app/controllers/spree/admin/base_controller.rb @@ -8,6 +8,7 @@ module Spree helper 'spree/admin/orders' helper 'admin/injection' helper 'admin/orders' + helper 'admin/enterprises' layout '/spree/layouts/admin'