2023-01-11 00:30:12 +01:00
|
|
|
# Must be registered *before* loading custom delivery methods
|
|
|
|
# otherwise the observer won't be invoked.
|
|
|
|
#
|
|
|
|
ActiveSupport.on_load(:action_mailer) do |mailer|
|
|
|
|
mailer.register_observer EmailDeliveryObserver
|
2023-01-09 17:05:38 +01:00
|
|
|
end
|