Class: MailEngine::MailLogsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/mail_engine/mail_logs_controller.rb

Constant Summary

Constants included from MailEngine

PLACEHOLDERS_IN_LAYOUT, VERSION

Instance Method Summary collapse

Methods inherited from ApplicationController

#close_modal_and_refresh

Instance Method Details

#destroyObject



11
12
13
14
# File 'app/controllers/mail_engine/mail_logs_controller.rb', line 11

def destroy
  @mail_log.destroy
  redirect_to mail_logs_path
end

#indexObject



4
5
6
# File 'app/controllers/mail_engine/mail_logs_controller.rb', line 4

def index
  @mail_logs = MailLog.order("created_at desc").page(params[:page]).per(20)
end

#showObject



8
9
# File 'app/controllers/mail_engine/mail_logs_controller.rb', line 8

def show
end