Skip to content

Commit 7310d7a

Browse files
committed
Use $LOADED_FEATURES built-in instead of $"
1 parent 42ed2f5 commit 7310d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rake/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ def handle_options(argv) # :nodoc:
691691

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

0 commit comments

Comments
 (0)