diff options
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r-- | railties/lib/rails/commands/command.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/railties/lib/rails/commands/command.rb b/railties/lib/rails/commands/command.rb index 0d4d44ff89..37d61a8bea 100644 --- a/railties/lib/rails/commands/command.rb +++ b/railties/lib/rails/commands/command.rb @@ -63,14 +63,11 @@ module Rails def command_for(command_name) klass = @@commands.find do |command| - command_instance_methods = command.public_instance_methods - command_instance_methods.include?(command_name) + command.public_instance_methods.include?(command_name) end if klass klass.new(@argv) - else - nil end end end |