diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-04-10 16:08:32 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-04-11 18:25:09 +0900 |
commit | 1b2f1735e77a89d8bdb929d63a2849b1381074b8 (patch) | |
tree | 43133d04cfbd748456fd4d6045fa23e4ed69d881 /actionmailbox/app/controllers | |
parent | 5963b3d9aceff52b7785823c26e8dcf866da5298 (diff) | |
download | rails-1b2f1735e77a89d8bdb929d63a2849b1381074b8.tar.gz rails-1b2f1735e77a89d8bdb929d63a2849b1381074b8.tar.bz2 rails-1b2f1735e77a89d8bdb929d63a2849b1381074b8.zip |
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.
Diffstat (limited to 'actionmailbox/app/controllers')
-rw-r--r-- | actionmailbox/app/controllers/action_mailbox/base_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |