From 689ab5dc5530d731d19f2bae703728d7654eccd6 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Wed, 12 Jan 2022 12:14:16 +0100 Subject: [PATCH] Update the Kernel#require comment about prepend Ref: https://github.com/Shopify/bootsnap/pull/389 I wondered the same, and was surprised to see it work. Turns out it was fixed recently. --- lib/zeitwerk/kernel.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zeitwerk/kernel.rb b/lib/zeitwerk/kernel.rb index 115d793..3e2463d 100644 --- a/lib/zeitwerk/kernel.rb +++ b/lib/zeitwerk/kernel.rb @@ -17,7 +17,7 @@ module Kernel # # We cannot decorate with prepend + super because Kernel has already been # included in Object, and changes in ancestors don't get propagated into - # already existing ancestor chains. + # already existing ancestor chains on Ruby < 3.0. alias_method :zeitwerk_original_require, :require # @sig (String) -> true | false