Permalink
Browse files

return argv from more methods

  • Loading branch information...
tenderlove committed Oct 30, 2013
1 parent 4e0694c commit 22dafbb65800615e8a3f3a499091b8e33c3d39f7
Showing with 4 additions and 2 deletions.
  1. +4 −2 railties/lib/rails/generators/rails/app/app_generator.rb
@@ -347,10 +347,12 @@ def handle_invalid_command!(argument, argv)
end
def handle_rails_rc!(argv)
- unless argv.delete("--no-rc")
+ if argv.find { |arg| arg == '--no-rc' }
+ argv.reject { |arg| arg == '--no-rc' }
+ else
insert_railsrc_into_argv!(argv, railsrc(argv))
+ argv
end
- argv
end
def railsrc(argv)

0 comments on commit 22dafbb

Please sign in to comment.