Class: Emailbutler::Ui::MessagesController

Inherits:
Emailbutler::UiController show all
Defined in:
app/controllers/emailbutler/ui/messages_controller.rb

Instance Method Summary collapse

Methods inherited from Emailbutler::UiController

#index, #show

Instance Method Details

#destroyObject



13
14
15
16
# File 'app/controllers/emailbutler/ui/messages_controller.rb', line 13

def destroy
  ::Emailbutler.destroy_message(@message)
  redirect_to ui_index_path
end

#updateObject



8
9
10
11
# File 'app/controllers/emailbutler/ui/messages_controller.rb', line 8

def update
  ::Emailbutler.resend_message(@message)
  redirect_to ui_index_path
end