Class: MailManager::BouncesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/mail_manager/bounces_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
9
10
11
12
13
# File 'app/controllers/mail_manager/bounces_controller.rb', line 5

def index
  params[:bounce] = Hash.new unless params[:bounce]
  status = params[:bounce][:status] || nil
  @mailings = Mailing.order("created_at desc")
  @bounces = Bounce.scoped
  @bounces = @bounces.by_mailing_id(@mailing.id) if @mailing.present?
  @bounces = @bounces.by_status(status) if status.present?
  @bounces = @bounces.paginate(:page => params[:page])
end

#showObject



15
16
# File 'app/controllers/mail_manager/bounces_controller.rb', line 15

def show
end