This project is archived and is in readonly mode.

#5045 ✓committed
madjo DIAPENA

Refactoring railties/lib/rails/commands/application.rb

Reported by madjo DIAPENA | July 4th, 2010 @ 05:30 PM

In Rails3.Beta4

ARGV.empty? is useless.
If ARGV is empty, ARGV.first != "new" will always be true.

...

if ARGV.first != "new" # || ARGV.empty? is useless

ARGV[0] = "--help"

else

ARGV.shift

end

...

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Tags

Pages