Class: Goldencobra::ActionMailer::Base
- Inherits:
-
Object
- Object
- Goldencobra::ActionMailer::Base
- Defined in:
- app/mailers/goldencobra/confirmation_mailer.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#do_not_deliver! ⇒ Object
A simple way to short circuit the delivery of an email from within deliver_* methods defined in ActionMailer::Base subclases.
- #process(*args) ⇒ Object
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.
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. = BlackholeMailMessage end end |