Skip to content

Commit

Permalink
Update the Kernel#require comment about prepend
Browse files Browse the repository at this point in the history
Ref: Shopify/bootsnap#389

I wondered the same, and was surprised to see it work.
Turns out it was fixed recently.
  • Loading branch information
byroot committed Jan 12, 2022
1 parent e335dca commit 689ab5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zeitwerk/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 689ab5d

Please sign in to comment.