From 993c0696e61f3449c97e31c54088ee7578953307 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Wed, 7 Sep 2016 22:44:21 +0200 Subject: Simplify auxiliary command files directory finding. Still vulnerable to different file structures. We likely want something more robust when we tackle in app commands. --- railties/lib/rails/command/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/rails/command/base.rb b/railties/lib/rails/command/base.rb index 73ebaca66f..1efcd69e63 100644 --- a/railties/lib/rails/command/base.rb +++ b/railties/lib/rails/command/base.rb @@ -111,7 +111,7 @@ module Rails # 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 -- cgit v1.2.3