Delete AS::Dependencies.autoloadable_module?

This commit is contained in:
Xavier Noria 2021-08-18 23:19:06 +02:00
parent c1a89b57df
commit ed1571ddc0
1 changed files with 0 additions and 10 deletions

View File

@ -103,16 +103,6 @@ module ActiveSupport # :nodoc:
nil # Gee, I sure wish we had first_match ;-)
end
# Does the provided path_suffix correspond to an autoloadable module?
# Instead of returning a boolean, the autoload base for this module is
# returned.
def autoloadable_module?(path_suffix)
autoload_paths.each do |load_path|
return load_path if File.directory? File.join(load_path, path_suffix)
end
nil
end
# Get the reference for class named +name+.
# Raises an exception if referenced class does not exist.
def constantize(name)