未验证 提交 e4b5ced3 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #40025 from KapilSachdev/fix/uninitialized_instance_variable

fix: warning: instance variable @controller not initialized
Co-authored-by: NSamuel Williams <samuel.williams@oriontransfer.co.nz>
......@@ -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.
先完成此消息的编辑!
想要评论请 注册