Browse Source

Fixed delayed job issue

development
Godwin 8 years ago
parent
commit
23e839bedf
  1. 2
      app/mailers/user_mailer.rb

2
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

Loading…
Cancel
Save