aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/commands/command.rb')
-rw-r--r--railties/lib/rails/commands/command.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/command.rb b/railties/lib/rails/commands/command.rb
index fe0b77cb96..d2e1cd18b4 100644
--- a/railties/lib/rails/commands/command.rb
+++ b/railties/lib/rails/commands/command.rb
@@ -1,3 +1,5 @@
+require 'rails/commands/commands_tasks'
+
module Rails
module Commands
class Command
@@ -15,7 +17,8 @@ module Rails
if command = command_for(command_name)
command.new(argv).run(command_name)
- true # Indicate command was found and run.
+ else
+ Rails::CommandsTasks.new(argv).run_command!(task_name)
end
end