aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox/app/controllers/action_mailbox/base_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionmailbox/app/controllers/action_mailbox/base_controller.rb')
-rw-r--r--actionmailbox/app/controllers/action_mailbox/base_controller.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/actionmailbox/app/controllers/action_mailbox/base_controller.rb b/actionmailbox/app/controllers/action_mailbox/base_controller.rb
index f0f1f555e6..80a14355b7 100644
--- a/actionmailbox/app/controllers/action_mailbox/base_controller.rb
+++ b/actionmailbox/app/controllers/action_mailbox/base_controller.rb
@@ -3,14 +3,10 @@
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
- def self.prepare
- # Override in concrete controllers to run code on load.
- end
-
private
def ensure_configured
unless ActionMailbox.ingress == ingress_name