Replace obsolete HTTP status code :unprocessable_entity
The new naming is :unprocessable_content and required by Rack 3.1+
This commit is contained in:

committed by
Sebastian Serth

parent
4e1e8c0f4d
commit
092487344a
@ -107,7 +107,7 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def render_csrf_error
|
||||
render_error t('sessions.expired'), :unprocessable_entity
|
||||
render_error t('sessions.expired'), :unprocessable_content
|
||||
end
|
||||
|
||||
def render_not_authorized
|
||||
|
Reference in New Issue
Block a user