load mail jobs in an initializer so Resque::Helper.constantize doesn't throw UninitializedConstant

when resque tried to get the constant "Mail" from the "Jobs" module it got the inherited constant "Mail" (ruby gem) instead of Jobs::Mail
This commit is contained in:
Dan Hansen 2011-10-09 23:39:56 -05:00
parent f6845c360f
commit 71681d1bc7

View file

@ -0,0 +1 @@
Dir["#{Rails.root}/app/models/jobs/mail/*.rb"].each { |file| require file }