From 2c394e7d7f4e33812a1e8874aba739efbdf42111 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 27 Mar 2021 13:06:27 +0000 Subject: [PATCH] Add checkout helper Fixes: Failure/Error: super ActionView::Template::Error: undefined method `checkout_adjustments_for' for #<#:0x000055f4bd845c30> # ./app/helpers/application_helper.rb:20:in `method_missing' # ./app/views/spree/admin/orders/_invoice_table.html.haml:26:in `_app_views_spree_admin_orders__invoice_table_html_haml___3617932924646213210_47254819384740' # ./app/views/spree/admin/orders/invoice.html.haml:67:in `_app_views_spree_admin_orders_invoice_html_haml__1476001169744481148_47254819971700' # ./app/services/invoice_renderer.rb:8:in `render_to_string' # ./app/controllers/spree/admin/orders_controller.rb:81:in `invoice' # ./spec/support/controller_requests_helper.rb:49:in `process_action_with_route' # ./spec/support/controller_requests_helper.rb:23:in `spree_get' # ./spec/controllers/spree/admin/orders/invoices_spec.rb:58:in `block (6 levels) in ' # ------------------ # --- Caused by: --- # NoMethodError: # undefined method `checkout_adjustments_for' for #<#:0x000055f4bd845c30> # ./app/helpers/application_helper.rb:20:in `method_missing' --- app/controllers/application_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index dfa0ea9a65..2055c0df16 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -24,6 +24,7 @@ class ApplicationController < ActionController::Base helper 'markdown' helper 'footer_links' helper 'discourse' + helper 'checkout' protect_from_forgery