diff options
author | George Claghorn <george@basecamp.com> | 2018-11-05 09:56:02 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-11-05 09:56:08 -0500 |
commit | d02ae4c7ae336412a5ff19400cda6b87ed58a465 (patch) | |
tree | ea07b330a7660179a5638368cd62a87c69a24ae2 /app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb | |
parent | 7755f9b381c007ce98e0858473a9f29f1cd25311 (diff) | |
download | rails-d02ae4c7ae336412a5ff19400cda6b87ed58a465.tar.gz rails-d02ae4c7ae336412a5ff19400cda6b87ed58a465.tar.bz2 rails-d02ae4c7ae336412a5ff19400cda6b87ed58a465.zip |
Rename authentication callbacks
Diffstat (limited to 'app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb')
-rw-r--r-- | app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb index 0b763dcf18..e878192603 100644 --- a/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb +++ b/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb @@ -1,12 +1,12 @@ class ActionMailbox::Ingresses::Mailgun::InboundEmailsController < ActionMailbox::BaseController - before_action :ensure_authenticated + before_action :authenticate def create ActionMailbox::InboundEmail.create_and_extract_message_id! params.require("body-mime") end private - def ensure_authenticated + def authenticate head :unauthorized unless authenticated? end |