From 933b5f16069923f5d2a24a36d5dc63e8acb4229d Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 11 Mar 2020 15:31:25 +0100 Subject: [PATCH] Fix reloading issue in dev environment I constantly get `NameError: uninitialized constant Spree::AuthenticationHelpers` when touching local files and then reloading a page, and have to restart my rails server every time (in development). I read the other day that this is the best way to fix the issue, and it seems to work... --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 5b67897fab..1a841eae27 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,5 +1,5 @@ require 'open_food_network/referer_parser' -require 'spree/authentication_helpers' +require_dependency 'spree/authentication_helpers' class ApplicationController < ActionController::Base protect_from_forgery