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

Version Path
mail_engine-0.1.15 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.14 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.13 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.12 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.11 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.10 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.9 app/controllers/mail_engine/mail_logs_controller.rb