未验证 提交 0cb6c273 编写于 作者: K Kasper Timm Hansen 提交者: GitHub

Merge pull request #38463 from jonathanhefner/fix-rails-new-dev

Fix `rails new --dev`
......@@ -21,7 +21,7 @@ def perform(*)
require_application_and_environment!
load_generators
ARGV.shift
ARGV.replace(args) # set up ARGV for third-party libraries
Rails::Generators.invoke generator, args, behavior: :invoke, destination_root: Rails::Command.root
end
......
......@@ -12,10 +12,10 @@ def printing_commands
formatted_rake_tasks.map(&:first)
end
def perform(task, *)
def perform(task, args, config)
require_rake
ARGV.unshift(task) # Prepend the task, so Rake knows how to run it.
ARGV.replace([task, *args]) # set up ARGV for Rake
Rake.application.standard_exception_handling do
Rake.application.init("rails")
......
# frozen_string_literal: true
require "shellwords"
require "active_support/core_ext/kernel/reporting"
require "active_support/core_ext/string/strip"
module Rails
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册