Method: Conductor::ActionMailbox::ReroutesController#create

Defined in:
actionmailbox/app/controllers/rails/conductor/action_mailbox/reroutes_controller.rb

#createObject



8
9
10
11
12
13
# File 'actionmailbox/app/controllers/rails/conductor/action_mailbox/reroutes_controller.rb', line 8

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