Skip to content

Commit

Permalink
Use $LOADED_FEATURES built-in instead of $"
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdb committed Dec 8, 2024
1 parent 42ed2f5 commit 7310d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rake/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def handle_options(argv) # :nodoc:

# Similar to the regular Ruby +require+ command, but will check
# for *.rake files in addition to *.rb files.
def rake_require(file_name, paths=$LOAD_PATH, loaded=$") # :nodoc:
def rake_require(file_name, paths=$LOAD_PATH, loaded=$LOADED_FEATURES) # :nodoc:
fn = file_name + ".rake"
return false if loaded.include?(fn)
paths.each do |path|
Expand Down

0 comments on commit 7310d7a

Please sign in to comment.