Class: Conductor::ActionMailbox::InboundEmailsController

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

Instance Method Summary collapse

Instance Method Details

#createObject



18
19
20
21
# File 'app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb', line 18

def create
  inbound_email = create_inbound_email(new_mail)
  redirect_to main_app.rails_conductor_inbound_email_url(inbound_email)
end

#indexObject



7
8
9
# File 'app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb', line 7

def index
  @inbound_emails = ActionMailbox::InboundEmail.order(created_at: :desc)
end

#newObject



11
12
# File 'app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb', line 11

def new
end

#showObject



14
15
16
# File 'app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb', line 14

def show
  @inbound_email = ActionMailbox::InboundEmail.find(params[:id])
end