Ruby on Rails latest stable (v4.2.7) - 1 note - Class: Object

Method deprecated or moved

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

These similar methods exist in v4.2.7:

unloadable(const_desc) public

Mark the given constant as unloadable. Unloadable constants are removed each time dependencies are cleared.

Note that marking a constant for unloading need only be done once. Setup or init scripts may list each unloadable constant that may need unloading; each constant will be removed for every subsequent clear, as opposed to for the first clear.

The provided constant descriptor may be a (non-anonymous) module or class, or a qualified constant name as a string or symbol.

Returns true if the constant was not previously marked for unloading, false otherwise.

Show source
Register or log in to add new notes.
May 22, 2009 - (v2.0.0 - v2.1.0)
1 thank


In 2.2 and greater this has moved to ActiveSupport::Dependencies::Loadable#unloadable