module ActiveSupport::Dependencies

def autoloadable_module?(path_suffix)

returned.
Instead of returning a boolean, the autoload base for this module is
Does the provided path_suffix correspond to an autoloadable module?
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