Prepend protect_from_forgery because this defaults to false now

This commit is contained in:
Benjamin Neff 2017-08-05 22:24:25 +02:00
parent b9d9a63739
commit e076910b74
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -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?