Permalink
Browse files

no need to shift

  • Loading branch information...
1 parent bda6d6c commit 960dd860242048fbb3c637307588000c38c5272c @tenderlove tenderlove committed Oct 30, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 railties/lib/rails/generators/rails/app/app_generator.rb
View
3 railties/lib/rails/generators/rails/app/app_generator.rb
@@ -319,8 +319,7 @@ def initialize(argv = ARGV)
def prepare!
handle_version_request!(@argv.first)
handle_invalid_command!(@argv.first, @argv) do
- @argv.shift
- handle_rails_rc!(@argv)
+ handle_rails_rc!(@argv.drop(1))
end
end

0 comments on commit 960dd86

Please sign in to comment.