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
|
|
@ -30,7 +30,7 @@ class Venue < ActiveRecord::Base
|
|||
private
|
||||
|
||||
def send_mail_notification
|
||||
Mailbot.delay.send_email_on_venue_updated(conference) if notify_on_venue_changed?
|
||||
Mailbot.send_email_on_venue_updated(conference).deliver_later if notify_on_venue_changed?
|
||||
end
|
||||
|
||||
def notify_on_venue_changed?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue