From 1b2f1735e77a89d8bdb929d63a2849b1381074b8 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Wed, 10 Apr 2019 16:08:32 +0900 Subject: Fix loading `ActionMailbox::BaseController` when CSRF protection is disabled When `default_protect_from_forgery` is false, `verify_authenticity_token` callback does not define and `skip_forgery_protection` raise exception. Fixes #34837. --- actionmailbox/app/controllers/action_mailbox/base_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionmailbox') diff --git a/actionmailbox/app/controllers/action_mailbox/base_controller.rb b/actionmailbox/app/controllers/action_mailbox/base_controller.rb index f0f1f555e6..92477b86a8 100644 --- a/actionmailbox/app/controllers/action_mailbox/base_controller.rb +++ b/actionmailbox/app/controllers/action_mailbox/base_controller.rb @@ -3,7 +3,7 @@ module ActionMailbox # The base class for all Action Mailbox ingress controllers. class BaseController < ActionController::Base - skip_forgery_protection + skip_forgery_protection if default_protect_from_forgery before_action :ensure_configured -- cgit v1.2.3