Class: Goldencobra::ActionMailer::Base

Inherits:
Object
  • Object
show all
Defined in:
app/mailers/goldencobra/confirmation_mailer.rb

Direct Known Subclasses

ConfirmationMailer

Instance Method Summary collapse

Instance Method Details

#do_not_deliver!Object

A simple way to short circuit the delivery of an email from within deliver_* methods defined in ActionMailer::Base subclases.

Raises:



29
30
31
# File 'app/mailers/goldencobra/confirmation_mailer.rb', line 29

def do_not_deliver!
  raise AbortDeliveryError
end

#process(*args) ⇒ Object



33
34
35
36
37
38
39
# File 'app/mailers/goldencobra/confirmation_mailer.rb', line 33

def process(*args)
  begin
    super *args
  rescue AbortDeliveryError
    self.message = BlackholeMailMessage
  end
end