Sha256: 52fda1e4cda9fc30b4a121e820eb2bcf26ba4933fa5f6fbd097afb88ca812e6b
Contents?: true
Size: 394 Bytes
Versions: 7
Compression:
Stored size: 394 Bytes
Contents
class MailEngine::MailLogsController < MailEngine::ApplicationController before_filter :find_model def index @mail_logs = MailLog.order("created_at desc").page(params[:page]).per(20) end def show end def destroy @mail_log.destroy redirect_to mail_logs_path end private def find_model @mail_log = MailLog.find(params[:id]) if params[:id].present? end end
Version data entries
7 entries across 7 versions & 1 rubygems