mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Better name for method in DebugExceptions middleware
This commit is contained in:
parent
02c5c0d156
commit
6fb2afed52
1 changed files with 2 additions and 2 deletions
|
@ -70,14 +70,14 @@ module ActionDispatch
|
|||
if @api_only
|
||||
render_for_api_application(request, wrapper)
|
||||
else
|
||||
render_for_non_api_application(request, wrapper)
|
||||
render_for_default_application(request, wrapper)
|
||||
end
|
||||
else
|
||||
raise exception
|
||||
end
|
||||
end
|
||||
|
||||
def render_for_non_api_application(request, wrapper)
|
||||
def render_for_default_application(request, wrapper)
|
||||
template = create_template(request, wrapper)
|
||||
file = "rescues/#{wrapper.rescue_template}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue