Hey,
I tried adding a new delivery_method that would act as a proxy for original delivery method, but would simply use #delay method, but I've got strange problem even with the simplest case when using e.g. :sendmail delivery method:
mail = UserMailer.welcome(user)
mail.delivery_method.delay.deliver!(mail) # delivery_method is :sendmail here
This creates the job correctly, but when I try to run it, I get the following error:
Job failed to load: uninitialized constant Mail::ParameterHash + YAML serialized handler.
Any idea if it's possible to make it somehow work?