提交 272f7c29 编写于 作者: M Matthew Draper

Explicitly load Kernel#y when starting a console

Previously, we relied on the IRB-detection in Psych itself. But that
doesn't work when we're running under spring: the application boots (and
thus psych is required) before we switch to console mode and load IRB.

Fixes #14587.
上级 7e663032
......@@ -430,6 +430,7 @@ def initialize
# Check <tt>Rails::Railtie.console</tt> for more info.
def load_console(app=self)
require "pp"
require "psych/y"
require "rails/console/app"
require "rails/console/helpers"
run_console_blocks(app)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册