w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
  • References
  • Ruby on Rails
  • Rails
  • Classes
  • ActiveSupport
  • ActiveSupport::Autoload
×
Type:
Module

Autoload and eager load conveniences for your library.

This module allows you to define autoloads based on Rails conventions (i.e. no need to define the path it is automatically guessed based on the filename) and also define a set of constants that needs to be eager loaded:

module MyLib
  extend ActiveSupport::Autoload

  autoload :Model

  eager_autoload do
    autoload :Cache
  end
end

Then your library can be eager loaded by simply calling:

MyLib.eager_load!
autoloads
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::Autoload

autoloads() Instance Public methods

2025-01-10 15:47:30
eager_load!
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::Autoload

eager_load!() Instance Public methods

2025-01-10 15:47:30
autoload_at
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::Autoload

autoload_at(path) Instance Public methods

2025-01-10 15:47:30
autoload_under
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::Autoload

autoload_under(path) Instance Public methods

2025-01-10 15:47:30
autoload
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::Autoload

autoload(const_name, path = @_at_path) Instance Public methods

2025-01-10 15:47:30
eager_autoload
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::Autoload

eager_autoload() Instance Public methods

2025-01-10 15:47:30
Popular Articles
pyplot pyplot matplotlib.pyplot Provides a MATLAB-like plotting framework. pylab combines pyplot with numpy into a single namespace. This is convenient for
Ion.RangeSlider - jQuery range slider with skin support Ion.RangeSlider is an easily customizable jQuery range slider. It has flexible settings and can be completely altered with CSS.   Ion.RangeSlider - 
Types Types JavaScript provides several built-in datatypes. In addition to those, this page documents virtual types like Selectors, enhanced pseudo-types
perlapi - autogenerated documentation for the perl public API NAME DESCRIPTION "Gimme" Values Array Manipulation Functions xsubpp variables and internal functions Callback Functions Character case changing Char
1. Overview This is a practical guide to Angular for experienced programmers who are building client applications in HTML and TypeScript. Organization The docu


  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions