Rails + Devise + delayed_job?

后端 未结 9 2084
长情又很酷
长情又很酷 2020-12-24 07:38

I have a Rails 3 App using Devise on Heroku. Problem is I\'m sending emails with Sendgrid and email delivery is slow, it makes the app hang. So I\'m interested in using dela

9条回答
  •  星月不相逢
    2020-12-24 08:31

    For delayed_job_active_record with Devise , just use the following . (add it to user.rb model )

    handle_asynchronously :send_devise_notification, :queue => 'devise'
    

提交回复
热议问题