Updated to rails 6. Passing tests

This commit is contained in:
rebuilt 2021-10-14 19:22:26 +02:00
parent 3430069801
commit 770ebc580e
20 changed files with 33 additions and 34 deletions

View file

@ -15,13 +15,13 @@ class AttemptsController < ApplicationController
)
unless (['start', 'resume', 'restart', 'yes', 'go'].index(twilio_params[:Body].downcase).nil?)
recipient.update_attributes(opted_out: false)
recipient.update(opted_out: false)
render plain: 'Thank you, you will now begin receiving messages again.'
return
end
unless (['stop', 'cancel', 'quit', 'no'].index(twilio_params[:Body].downcase).nil?)
recipient.update_attributes(opted_out: true)
recipient.update(opted_out: true)
render plain: 'Thank you, you have been opted out of these messages and will no longer receive them.'
return
end