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

@ -52,7 +52,7 @@ class ApplicationController < ActionController::Base
end
def render_failure message, status = 404
render :text => message, :status => status
render :body => message, :status => status
end
# Returns a count of next actions in the given context or project The result
@ -147,7 +147,7 @@ class ApplicationController < ActionController::Base
def admin_login_required
unless User.find(session['user_id']).is_admin
render :text => t('errors.user_unauthorized'), :status => 401
render :body => t('errors.user_unauthorized'), :status => 401
return false
end
end