Class: Noticed::DeliveryMethods::Email
- Defined in:
- lib/noticed/delivery_methods/email.rb
Instance Attribute Summary
Attributes inherited from Base
#logger, #notification, #options, #params, #recipient, #record
Instance Method Summary collapse
Methods inherited from Base
#assign_args, inherited, options, #perform, validate!
Instance Method Details
#deliver ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/noticed/delivery_methods/email.rb', line 6 def deliver if [:enqueue] mailer.with(format).send(mailer_method.to_sym).deliver_later else mailer.with(format).send(mailer_method.to_sym).deliver_now end end |