Skip to content

Commit

Permalink
Don't make Kernel#require and Kernel#load public
Browse files Browse the repository at this point in the history
The `require` and `load` instance methods on the Kernel module are
private. By redefining them without using an access modifier, Bootsnap
was making them public.
  • Loading branch information
eugeneius committed Mar 22, 2018
1 parent 0373e14 commit 38688bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bootsnap/load_path_cache/core_ext/kernel_require.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def self.make_load_error(path)
end

module Kernel
private

alias_method :require_without_bootsnap, :require

# Note that require registers to $LOADED_FEATURES while load does not.
Expand Down

0 comments on commit 38688bd

Please sign in to comment.