method

autoload_module!

rails latest stable - Class: ActiveSupport::Dependencies

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

autoload_module!(into, const_name, qualified_name, path_suffix)
public

Attempt to autoload the provided module name by searching for a directory matching the expected path suffix. If found, the module is created and assigned to into's constants with the name const_name. Provided that the directory was loaded from a reloadable base path, it is added to the set of constants that are to be unloaded.