Skip to content

Commit cbea814

Browse files
authored
Merge pull request #605 from pvdb/loaded_features_builtin
refactor: use `$LOADED_FEATURES` built-in instead of `$"`
2 parents 42ed2f5 + 7310d7a commit cbea814

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)