aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/object/extending.rb
blob: c4c37b6a2a585916b7b5b8bc094ca54436255df8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
require 'active_support/core_ext/class/subclasses'

class Object
  # 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.
  def subclasses_of(*superclasses) #:nodoc:
    Class.subclasses_of(*superclasses)
  end
end