From 6fb2afed5284c7bc0157055609a0fde9ea4518d0 Mon Sep 17 00:00:00 2001 From: Jorge Bejar Date: Mon, 20 Jul 2015 14:09:16 -0300 Subject: Better name for method in DebugExceptions middleware --- actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_dispatch') diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb index e5500ccdac..7912b5ce82 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb @@ -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}" -- cgit v1.2.3