提交 993c0696 编写于 作者: K Kasper Timm Hansen

Simplify auxiliary command files directory finding.

Still vulnerable to different file structures. We likely want something
more robust when we tackle in app commands.
上级 d5bd4b25
......@@ -111,7 +111,7 @@ def usage_path
# For a `Rails::Command::TestCommand` placed in `rails/command/test_command.rb`
# would return `rails/test`.
def default_command_root
path = File.expand_path(File.join(base_name, command_name), __dir__)
path = File.expand_path(File.join("../commands", command_name), __dir__)
path if File.exist?(path)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册