From d08033f9b50bddd1bbad8818541cff0f67bcc260 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Sat, 5 Dec 2015 21:47:22 +0100 Subject: [PATCH] Remove `_instance` suffix from command. I want to streamline the wording around `command`, and not start pondering about instances. --- railties/lib/rails/commands/command.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/railties/lib/rails/commands/command.rb b/railties/lib/rails/commands/command.rb index b491821161..16e1fadcd3 100644 --- a/railties/lib/rails/commands/command.rb +++ b/railties/lib/rails/commands/command.rb @@ -16,8 +16,8 @@ module Rails parse_options_for(command_name) @option_parser.parse! @argv - if command_instance = command_for(command_name) - command_instance.public_send(command_name) + if command = command_for(command_name) + command.public_send(command_name) else puts @option_parser end