method
autoload
v3.2.13 -
Show latest stable
- Class:
ActiveSupport::Autoload
autoload(const_name, path = @@at_path)public
No documentation available.
# File activesupport/lib/active_support/dependencies/autoload.rb, line 11
def autoload(const_name, path = @@at_path)
full = [self.name, @@under_path, const_name.to_s, path].compact.join("::")
location = path || Inflector.underscore(full)
if @@eager_autoload
@@autoloads[const_name] = location
end
super const_name, location
end