diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 06a23e1..38b2b72 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -4,7 +4,7 @@ class ApplicationController < ActionController::Base include ExceptionHandler - protect_from_forgery with: forgery_method, prepend: true + protect_from_forgery with: :null_session, prepend: true before_action :prepare_exception_notifier before_action :configure_permitted_parameters, if: :devise_controller? @@ -54,10 +54,6 @@ class ApplicationController < ActionController::Base render 'application/page_not_found', status: :not_found end - def forgery_method - Rails.env.production? ? :null_session : :exception - end - protected def configure_permitted_parameters