On 01/08/06, <b class="gmail_sendername">Matthew Denner</b> <<a href="mailto:matt.denner@gmail.com">matt.denner@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Class.subclasses_of(ActiveRecord::Base)<br><br>To get an array of the classes that subclass ActiveRecord::Base. Be<br>warned that this might include classes outside of your code (like<br>CGI::Session::ActiveRecordStore::Session from the looks of my test).
<br>Use 'script/console' to try it out to see what it gives you.<br></blockquote></div><br>>> Class.subclasses_of(ActiveRecord::Base)<br>=> [CGI::Session::ActiveRecordStore::Session]<br><br>There are other subclasses of ActiveRecord::Base in this project.
<br>-- <br>Cheers,<br>Hasan Diwan <<a href="mailto:hasan.diwan@gmail.com">hasan.diwan@gmail.com</a>>