mirror of https://github.com/rails/rails
Delete AS::Dependencies.autoloadable_module?
This commit is contained in:
parent
c1a89b57df
commit
ed1571ddc0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue