aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/action_mailbox/base_controller.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-12-13 10:05:53 -0500
committerGeorge Claghorn <george@basecamp.com>2018-12-13 10:05:53 -0500
commitcbb2bdafd91edfb515c0e440c050bc5a542f8438 (patch)
tree4cac6dd45a5fb6605bbd08d303857679bd8cf5bd /app/controllers/action_mailbox/base_controller.rb
parent7a2ff4ea093dac8b8ad20e6f17679b972f7f967a (diff)
downloadrails-cbb2bdafd91edfb515c0e440c050bc5a542f8438.tar.gz
rails-cbb2bdafd91edfb515c0e440c050bc5a542f8438.tar.bz2
rails-cbb2bdafd91edfb515c0e440c050bc5a542f8438.zip
Document the ingress controllers
Diffstat (limited to 'app/controllers/action_mailbox/base_controller.rb')
-rw-r--r--app/controllers/action_mailbox/base_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/action_mailbox/base_controller.rb b/app/controllers/action_mailbox/base_controller.rb
index 5af59f8140..b73f5b7708 100644
--- a/app/controllers/action_mailbox/base_controller.rb
+++ b/app/controllers/action_mailbox/base_controller.rb
@@ -16,7 +16,7 @@ class ActionMailbox::BaseController < ActionController::Base
end
def ingress_name
- self.class.name[/^ActionMailbox::Ingresses::(.*?)::/, 1].underscore.to_sym
+ self.class.name.remove(/\AActionMailbox::Ingresses::/, /::InboundEmailsController\z/).underscore.to_sym
end