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:



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

def do_not_deliver!
  raise AbortDeliveryError
end

#process(*args) ⇒ Object



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

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