提交 c0461434 编写于 作者: M Matthew Draper

Revert "Merge pull request #31434 from olivierlacan/boot-feedback"

This reverts commit edc54fd2, reversing
changes made to a5922f13.

As discussed, this is not an appropriate place to make assumptions about
ARGV, or to write to stdout: config/boot.rb is a library and is required
by other applictions, with which we have no right to interfere.
上级 6e74e1d1
......@@ -5,7 +5,3 @@
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
$LOAD_PATH.unshift File.expand_path("../../../lib", __dir__)
if %w[s server c console].any? { |a| ARGV.include?(a) }
puts "=> Booting Rails"
end
......@@ -4,7 +4,3 @@ require 'bundler/setup' # Set up gems listed in the Gemfile.
<% if depend_on_bootsnap? -%>
require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
<%- end -%>
if %w[s server c console].any? { |a| ARGV.include?(a) }
puts "=> Booting Rails"
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册