[Ruby] Want ar_mailer and exception_notification to play nice

Eric Hodel drbrain at segment7.net
Sat Sep 22 14:43:18 PDT 2007


On Sep 22, 2007, at 08:01, Victor Cosby wrote:
> On 9/18/07, Eric Hodel <drbrain at segment7.net> wrote:
>>
>> It may not even be possible to have multiple delivery methods in
>> ActiveRecord at all.
>
> Apparently not. When I set ExceptionNotifier.delivery_method to :smtp,
> all messages are sent that way, i.e. ar_mailer is bypassed.
>
> So I guess my next question is it possible to have ar_mailer deliver
> the exception notices generated by the exception_notification plugin?

You probably have to change the superclass to ar_mailer's.

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars




More information about the Ruby mailing list