Convert render :text to render :body

Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
Matt Rogers 2018-09-22 13:03:35 -05:00
parent 60ae4f6f5f
commit 5805c511bb
No known key found for this signature in database
GPG key ID: 605D017C07EB4316
9 changed files with 20 additions and 20 deletions

View file

@ -19,14 +19,14 @@ class IntegrationsController < ApplicationController
def cloudmailin
if !verify_cloudmailin_signature
render :text => "Message signature verification failed.", :status => 403
render :body => "Message signature verification failed.", :status => 403
return false
end
if process_message(params[:message])
render :text => 'success', :status => 200
render :body => 'success', :status => 200
else
render :text => "No user found or other error", :status => 404
render :body => "No user found or other error", :status => 404
end
end