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:
parent
f6845c360f
commit
71681d1bc7
1 changed files with 1 additions and 0 deletions
1
config/initializers/load_mail_jobs.rb
Normal file
1
config/initializers/load_mail_jobs.rb
Normal file
|
|
@ -0,0 +1 @@
|
|||
Dir["#{Rails.root}/app/models/jobs/mail/*.rb"].each { |file| require file }
|
||||
Loading…
Reference in a new issue