diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-09-07 22:44:21 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-09-25 21:31:35 +0200 |
commit | 993c0696e61f3449c97e31c54088ee7578953307 (patch) | |
tree | 4c9d1b8eb18de1ca29ed77333769df127cb32ec1 | |
parent | d5bd4b259fa07aba81effaebfe2874ddfdf91bf5 (diff) | |
download | rails-993c0696e61f3449c97e31c54088ee7578953307.tar.gz rails-993c0696e61f3449c97e31c54088ee7578953307.tar.bz2 rails-993c0696e61f3449c97e31c54088ee7578953307.zip |
Simplify auxiliary command files directory finding.
Still vulnerable to different file structures. We likely want something
more robust when we tackle in app commands.
-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 |