Class: Conductor::ActionMailbox::ReroutesController

Inherits:
Rails::Conductor::BaseController
  • Object
show all
Defined in:
app/controllers/rails/conductor/action_mailbox/reroutes_controller.rb

Overview

Rerouting will run routing and processing on an email that has already been, or attempted to be, processed.

Instance Method Summary collapse

Instance Method Details

#createObject



6
7
8
9
10
11
# File 'app/controllers/rails/conductor/action_mailbox/reroutes_controller.rb', line 6

def create
  inbound_email = ActionMailbox::InboundEmail.find(params[:inbound_email_id])
  reroute inbound_email

  redirect_to main_app.rails_conductor_inbound_email_url(inbound_email)
end