提交 dabece17 编写于 作者: K KapilSachdev

fix: warning: instance variable @controller not initialized

Fixes #39937
上级 23a9e29d
......@@ -199,7 +199,8 @@ def recognized_request_for(path, extras = {}, msg)
method = :get
end
request = ActionController::TestRequest.create @controller.class
controller = @controller if defined?(@controller)
request = ActionController::TestRequest.create controller&.class
if %r{://}.match?(path)
fail_on(URI::InvalidURIError, msg) do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册