mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 20:54:03 +00:00
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
|
|
@ -85,7 +85,7 @@ module Admin
|
|||
send_mail_on_conf_update = @conference.notify_on_dates_changed?
|
||||
|
||||
if @conference.update_attributes(conference_params)
|
||||
Mailbot.delay.conference_date_update_mail(@conference) if send_mail_on_conf_update
|
||||
Mailbot.conference_date_update_mail(@conference).deliver_later if send_mail_on_conf_update
|
||||
redirect_to edit_admin_conference_path(id: @conference.short_title),
|
||||
notice: 'Conference was successfully updated.'
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue