mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Convert render :text to render :body
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
parent
60ae4f6f5f
commit
5805c511bb
9 changed files with 20 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue