aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2019-01-24 12:43:07 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2019-02-06 16:57:34 -0800
commit517b96207d0e083a42b81414efa9f9b6ba300e03 (patch)
tree53bef0178456e1b323dd0e3a41819dad88bf4305 /actionpack
parent6dcd43b2a8a81b6131f5a569fffae6a17d337032 (diff)
downloadrails-517b96207d0e083a42b81414efa9f9b6ba300e03.tar.gz
rails-517b96207d0e083a42b81414efa9f9b6ba300e03.tar.bz2
rails-517b96207d0e083a42b81414efa9f9b6ba300e03.zip
Pull generated methods up in to the anonymous subclass
Then we don't need the extra module.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/middleware/debug_view.rb7
1 files changed, 1 insertions, 6 deletions
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)