Browse Source

Fixed delayed job issue

development
Godwin 8 years ago
parent
commit
343a55deef
  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) def self.send_mail(*args)
if Rails.env.preview? || Rails.env.production? if Rails.env.preview? || Rails.env.production?
delay(Rails.env).send(*args) delay(queue: Rails.env.to_s).send(*args)
else else
send(*args).deliver_now send(*args).deliver_now
end end

Loading…
Cancel
Save