From 23e839bedfef5e6379f75e78ba6a803cdf646b83 Mon Sep 17 00:00:00 2001 From: Godwin Date: Sun, 21 May 2017 16:01:06 -0700 Subject: [PATCH] Fixed delayed job issue --- app/mailers/user_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 7a616ee..2b42f30 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -169,7 +169,7 @@ class UserMailer < ActionMailer::Base def self.send_mail(*args) if Rails.env.preview? || Rails.env.production? - delay(Rails.env).send(*args) + delay(queue: Rails.env.to_s).send(*args) else send(*args).deliver_now end