I am writing the AS core extensions guide, and would like to know your
opinion about Class#subclasses:

AS defines Class#subclasses, it returns the name of all descendants
(strings). Same as AC::Base.subclasses.

AR::Base.subclasses on the other hand returns all descendants
(classes), and it is protected.

The guide could warn about AR::Base. We could also redefine
AR::Base.subclasses to match the rest (I'd volunteer). ack says there
are not a lot of occurrences, but it wouldn't be backwards compatible.

What do you think?
-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.


Reply via email to