Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 272f7c29e2105f33a6f4131cfaf423bfd05b6040 1 parent 7e66303
@matthewd matthewd authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  railties/lib/rails/engine.rb
1  railties/lib/rails/engine.rb
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.