public Method

Dependencies.autoloadable_module?(path_suffix)

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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.