From 517b96207d0e083a42b81414efa9f9b6ba300e03 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 24 Jan 2019 12:43:07 -0800 Subject: Pull generated methods up in to the anonymous subclass Then we don't need the extra module. --- actionpack/lib/action_dispatch/middleware/debug_view.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_dispatch/middleware/debug_view.rb b/actionpack/lib/action_dispatch/middleware/debug_view.rb index 499bb1b391..f16484d1ea 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_view.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_view.rb @@ -9,11 +9,6 @@ module ActionDispatch class DebugView < ActionView::Base # :nodoc: RESCUES_TEMPLATE_PATH = File.expand_path("templates", __dir__) - module CompiledTemplates - end - - include CompiledTemplates - def initialize(assigns) paths = [RESCUES_TEMPLATE_PATH] renderer = ActionView::Renderer.new ActionView::LookupContext.new(paths) @@ -21,7 +16,7 @@ module ActionDispatch end def compiled_method_container - CompiledTemplates + self.class end def debug_params(params) -- cgit v1.2.3