diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-06 14:06:07 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-06 14:06:07 +0100 |
commit | 93ee1b1021c974b9dd5ceee7166698af902cf34c (patch) | |
tree | d57b88d045c0087eded6d5b6db211dcbb378a6e0 /railties/lib/rails/commands/commands_tasks.rb | |
parent | 88d194eac9573251cb83a92ebaf88dff4fa54ad3 (diff) | |
download | rails-93ee1b1021c974b9dd5ceee7166698af902cf34c.tar.gz rails-93ee1b1021c974b9dd5ceee7166698af902cf34c.tar.bz2 rails-93ee1b1021c974b9dd5ceee7166698af902cf34c.zip |
Invert command and commands tasks reference.
We should first attempt to run commands through Rails command, and then
fall back to trying the commands tasks.
Because eventually the commands tasks should be their own commands.
Diffstat (limited to 'railties/lib/rails/commands/commands_tasks.rb')
-rw-r--r-- | railties/lib/rails/commands/commands_tasks.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/lib/rails/commands/commands_tasks.rb b/railties/lib/rails/commands/commands_tasks.rb index c70a2af577..7e6b49e2a3 100644 --- a/railties/lib/rails/commands/commands_tasks.rb +++ b/railties/lib/rails/commands/commands_tasks.rb @@ -37,9 +37,7 @@ EOT def run_command!(command) command = parse_command(command) - run_with_command = Rails::Commands::Command.run(command, argv) - - if !run_with_command && COMMAND_WHITELIST.include?(command) + if COMMAND_WHITELIST.include?(command) send(command) end end |