From cdcee07c143db96b5993314a86858befc17fd455 Mon Sep 17 00:00:00 2001 From: mishina Date: Wed, 8 Jun 2022 22:44:31 +0900 Subject: [PATCH] Address the change of ActionView::Base.new in Rails 6 Same change as rails/web-console#304 --- lib/web_console/testing/fake_middleware.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web_console/testing/fake_middleware.rb b/lib/web_console/testing/fake_middleware.rb index 144fc292..bd278d46 100644 --- a/lib/web_console/testing/fake_middleware.rb +++ b/lib/web_console/testing/fake_middleware.rb @@ -22,7 +22,7 @@ def call(env) end def view - @view = View.new(@view_path) + View.with_empty_template_cache.with_view_paths(@view_path) end private