ActionMailer::MessageDelivery#deliver is deprecated and will be removed
Use ActionMailer::MessageDelivery#deliver_now to deliver immediately.
This commit is contained in:
parent
d578440116
commit
2c60c263d0
|
@ -5,7 +5,7 @@ class RemindersController < ApplicationController
|
||||||
@reminder = Reminder.new(reminder_params)
|
@reminder = Reminder.new(reminder_params)
|
||||||
@reminder.from_user = current_user
|
@reminder.from_user = current_user
|
||||||
if @reminder.save
|
if @reminder.save
|
||||||
ThingMailer.reminder(@reminder.thing).deliver
|
ThingMailer.reminder(@reminder.thing).deliver_now
|
||||||
@reminder.update_attribute(:sent, true)
|
@reminder.update_attribute(:sent, true)
|
||||||
render(json: @reminder)
|
render(json: @reminder)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue