1
0
Fork 0
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:
Jorge Bejar 2015-07-20 14:09:16 -03:00
parent 02c5c0d156
commit 6fb2afed52

View file

@ -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}"