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



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

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

#indexObject



5
6
7
# File 'app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb', line 5

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

#newObject



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

def new
end

#showObject



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

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