From e076910b74eeae20912dc662519b42932a7e50ae Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sat, 5 Aug 2017 22:24:25 +0200 Subject: [PATCH] Prepend protect_from_forgery because this defaults to false now --- 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 50484821e..27e793c1b 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -5,7 +5,7 @@ class ApplicationController < ActionController::Base before_action :force_tablet_html has_mobile_fu - protect_from_forgery except: :receive, with: :exception + protect_from_forgery except: :receive, with: :exception, prepend: true rescue_from ActionController::InvalidAuthenticityToken do if user_signed_in?