Object.subclasses_of gone

Hi list,

With Rails 3 beta, activesupport/lib/active_support/core_ext/object/extending.rb is gone, and with it Object.subclasses_of.

Is there an official replacement for that ? Maybe in Ruby 1.8.7 ?

Cordialement,
Julien Palmas

05 82 95 00 73

06 07 47 85 87

julien@cruxandco.com

logo

Hey Julien, that method was among a few that were removed because they were kinda internal and were no longer being used in the framework. The classes in Rails that keep track of subclasses do that by themselves.

But some plugins were actually using Object#subclasses_of, so it is now back in master and there are no plans to deprecate it.

Did you realise you have replied to a post from over two years ago?

Colin