Class: MailManager::BouncesController

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

Instance Method Summary collapse

Methods inherited from BaseController

#site_url, #title, #use_show_for_resources?

Instance Method Details

#indexObject



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

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

#showObject



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

def show
end