Sha256: f2682f340b711447e4046f68cafb47a36af2ef946457af68054cd6f05af47998

Contents?: true

Size: 393 Bytes

Versions: 9

Compression:

Stored size: 393 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

9 entries across 9 versions & 1 rubygems

Version Path
mail_engine-0.1.8 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.7 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.6 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.5 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.4 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.3 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.2 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.1 app/controllers/mail_engine/mail_logs_controller.rb
mail_engine-0.1.0 app/controllers/mail_engine/mail_logs_controller.rb