diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/command/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |