Rails 3 RC: Access Mailer classes from rake task?

3 views
Skip to first unread message

Yuri

unread,
Aug 23, 2010, 10:56:44 PM8/23/10
to Ruby on Rails: Talk
Anyone know if there's something special required for code running
from Rake, e.g. resque jobs, to be able to see app mailer classes?
Access to model code is no problem, but anything that hits FooMailer,
for example, will throw uninitialized constant.

I gave task 'resque:setup' => [:environment] and rake environment ...
a whirl but they don't change behavior for mailers or models (the
latter are fine with and without it.)
Reply all
Reply to author
Forward
0 new messages