From 022201531aa906495c5e193da00c88014ded914e Mon Sep 17 00:00:00 2001 From: mishina Date: Wed, 25 May 2022 23:11:06 +0900 Subject: [PATCH] Render templates without '.' in the name Similar change as rails/web-console#298 refs: - rails/rails#39164 - https://stackoverflow.com/questions/68836670/rails-6-1-4-deprecation-warning-rendering-actions-with --- 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 bd278d46..ba100dc9 100644 --- a/lib/web_console/testing/fake_middleware.rb +++ b/lib/web_console/testing/fake_middleware.rb @@ -29,7 +29,7 @@ def view # extract target path from REQUEST_PATH def req_path(env) - env["REQUEST_PATH"].match(@req_path_regex)[1] + File.basename(env["REQUEST_PATH"].match(@req_path_regex)[1], ".*") end def render(template)