Hi Tomasz,

On 7/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Holy crap...
>
> Your question gave me an idea. To add a simple and dirty require to my
> controller
>
> class AuctionController < ApplicationController
>  require 'notif_mailer'
>
>
> And... it works!

Great news ! Well done !


> This is sick. This model (like all app models) is normally accessible
> from within the controller. Is it that scheduler uses different
> context and loses rails-environment classes when not explicitly
> required in the controller?

I have no idea, the scheduler is very very simple. If you remove the
scheduler and trigger NotifMailer.notify() outside of a block (but in
the controller), what happens ?


-- 
John Mettraux   -///-   http://jmettraux.openwfe.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to