Switch mail sending to active_job
Before we were using the delayed_job method of delaying mail sending which isn't working anymore on rails 4.
This commit is contained in:
parent
14011f8828
commit
21280cd9d8
9 changed files with 12 additions and 11 deletions
|
|
@ -45,7 +45,7 @@ class Registration < ActiveRecord::Base
|
|||
|
||||
def send_registration_mail
|
||||
if conference.email_settings.send_on_registration?
|
||||
Mailbot.delay.registration_mail(conference, user)
|
||||
Mailbot.registration_mail(conference, user).deliver_later
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue