Fixing emails to send them with delayed jobs

This commit is contained in:
Gopesh Tulsyan 2014-07-24 17:48:39 +05:30
parent 4aee4b045f
commit 8678b90129
4 changed files with 20 additions and 28 deletions

View file

@ -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),