method

subclasses_of

rails latest stable - Class: Object

Method deprecated or moved

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

subclasses_of(*superclasses)
public

Exclude this class unless it’s a subclass of our supers and is defined. We check defined? in case we find a removed class that has yet to be garbage collected. This also fails for anonymous classes — please submit a patch if you have a workaround.