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-RJf3nWr7EOigSpxsJD1C4w@public.gmane.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, Feb 15, 2010 at 5:49 PM, Julien Palmas <julien-RJf3nWr7EOigSpxsJD1C4w@public.gmane.org> 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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Tuesday, February 16, 2010 1:59:02 AM UTC+9, Xavier Noria wrote:> > On Mon, Feb 15, 2010 at 5:49 PM, Julien Palmas <jul...-RJf3nWr7EOigSpxsJD1C4w@public.gmane.org<javascript:> > > 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. >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). -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/6MJeskNGE90J. For more options, visit https://groups.google.com/groups/opt_out.
On 28 August 2012 02:38, jpgeek <steve.zergsoft-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: Did you realise you have replied to a post from over two years ago? Colin> > On Tuesday, February 16, 2010 1:59:02 AM UTC+9, Xavier Noria wrote:-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.