Class: Ayl::Mailer
Instance Attribute Summary collapse
-
#mailer ⇒ Object
Returns the value of attribute mailer.
Instance Method Summary collapse
Instance Attribute Details
#mailer ⇒ Object
Returns the value of attribute mailer.
6 7 8 |
# File 'lib/ayl/mailer.rb', line 6 def mailer @mailer end |
Instance Method Details
#burying_job(code) ⇒ Object
20 21 22 23 24 |
# File 'lib/ayl/mailer.rb', line 20 def (code) mailer.(code).deliver if mailer && mailer.respond_to?(:burying_job) rescue Exception => ex Ayl::Logger.instance.error("Error sending burying_job email message: #{ex.backtrace.join("\n")}") end |
#deliver_message(message, exception = nil) ⇒ Object
14 15 16 17 18 |
# File 'lib/ayl/mailer.rb', line 14 def (, exception=nil) mailer.(, exception).deliver if mailer && mailer.respond_to?(:ayl_message) rescue Exception => ex Ayl::Logger.instance.error("Error sending ayl email message: #{ex.backtrace.join("\n")}") end |