Fixing emails to send them with delayed jobs
This commit is contained in:
parent
4aee4b045f
commit
8678b90129
4 changed files with 20 additions and 28 deletions
|
|
@ -82,7 +82,7 @@ class ConferenceRegistrationController < ApplicationController
|
|||
# Track ahoy event
|
||||
ahoy.track 'Registered', title: 'New registration'
|
||||
if conference.email_settings.send_on_registration?
|
||||
Mailbot.registration_mail(conference, current_user).deliver
|
||||
Mailbot.delay.registration_mail(conference, current_user)
|
||||
end
|
||||
end
|
||||
redirect_to(register_conference_path(id: conference.short_title),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue