class Rails::Rails::Conductor::ActionMailbox::ReroutesController

Parent:
Rails::Rails::Conductor::BaseController

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

Public Instance Methods

create() Show source
# File actionmailbox/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

© 2004–2019 David Heinemeier Hansson
Licensed under the MIT License.