Skip to content
Browse files

stop mutating ARGV

  • Loading branch information...
1 parent a092ea1 commit fe7ec5d52f5bd1a145ae22e850a366f57d2dd7d4 @tenderlove tenderlove committed Oct 30, 2013
View
4 railties/lib/rails/commands/application.rb
@@ -13,5 +13,5 @@ def self.exit_on_failure?
end
end
-Rails::Generators::ARGVScrubber.new(ARGV).prepare!
-Rails::Generators::AppGenerator.start
+args = Rails::Generators::ARGVScrubber.new(ARGV).prepare!
+Rails::Generators::AppGenerator.start args
View
2 railties/lib/rails/generators/rails/app/app_generator.rb
@@ -315,7 +315,7 @@ class ARGVScrubber # :nodoc
attr_reader :argv
def initialize(argv = ARGV)
- @argv = argv
+ @argv = argv.dup
end
def prepare!

0 comments on commit fe7ec5d

Please sign in to comment.
Something went wrong with that request. Please try again.