Getting a list of your activerecord models

That’ll do

 

Dir.glob(“#{RAILS_ROOT}/app/models/**/*rb”).each{|m| Dependencies.require_or_load m }

Object.subclasses_of ActiveRecord::Base

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

About the Author

admin

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus