mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Use ActiveJob to send schedule update mails
This commit is contained in:
parent
2ea7bda639
commit
82e356dde0
3 changed files with 17 additions and 8 deletions
|
|
@ -14,7 +14,7 @@ module Admin
|
|||
send_mail_on_schedule_public = @program.notify_on_schedule_public?
|
||||
|
||||
if @program.update_attributes(program_params)
|
||||
Mailbot.send_on_schedule_public(@conference).deliver_later if send_mail_on_schedule_public
|
||||
ConferenceScheduleUpdateMailJob.perform_later(@conference) if send_mail_on_schedule_public
|
||||
redirect_to admin_conference_program_path(@conference.short_title),
|
||||
notice: 'The program was successfully updated.'
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue