提交 fe7ec5d5 编写于 作者: A Aaron Patterson

stop mutating ARGV

上级 a092ea14
......@@ -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
......@@ -315,7 +315,7 @@ class ARGVScrubber # :nodoc
attr_reader :argv
def initialize(argv = ARGV)
@argv = argv
@argv = argv.dup
end
def prepare!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册