Does the provided path_suffix correspond to an autoloadable module? Instead of returning a boolean, the autoload base for this module is returned.
Source Code
# File active_support/dependencies.rb, line 164 def autoloadable_module?(path_suffix) load_paths.each do |load_path| return load_path if File.directory? File.join(load_path, path_suffix) end nil end
<code/>and<pre/>for code samples.