How can I access ExceptionNotifier variables such as sender_address or exception_recipients in my custom mailer class? Since ExceptionNotifier is implemented as Rack middleware, I’m not sure how to go about it.
How can I access ExceptionNotifier variables such as sender_address or exception_recipients in my custom
Share
I still don’t know how to access the ExceptionNotifier variables, so the workaround I decided on is to add these variables to Rails config instead, and use them to configure both ExceptionNotifier and my custom mailer:
The config variables can be accessed elsewhere as
Rails.configuration.exception_senderand so on.