ActionMailer::MessageDelivery#deliver is deprecated and will be removed

Use ActionMailer::MessageDelivery#deliver_now to deliver immediately.
This commit is contained in:
Erik Michaels-Ober 2016-04-18 09:30:17 -07:00
parent d578440116
commit 2c60c263d0
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ class RemindersController < ApplicationController
@reminder = Reminder.new(reminder_params)
@reminder.from_user = current_user
if @reminder.save
ThingMailer.reminder(@reminder.thing).deliver
ThingMailer.reminder(@reminder.thing).deliver_now
@reminder.update_attribute(:sent, true)
render(json: @reminder)
else