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 P.
05 82 95 00 73
06 07 47 85 87
[email protected]

On Mon, Feb 15, 2010 at 5:49 PM, Julien P. [email protected]
wrote:

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 ?

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.

On Tuesday, February 16, 2010 1:59:02 AM UTC+9, Xavier N. wrote:

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

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.

It doesn’t appear to exist in the source code of 3.2.8. Digging through
the git history, it looks like it was reinstated Feb 9 2010 but then
removed again Jul 5 2010 (commit
d1938953f416ac945b591251567d51e30ee2a6a4).

On 28 August 2012 02:38, jpgeek [email protected] wrote:

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

Colin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs