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
That’ll do
Dir.glob(“#{RAILS_ROOT}/app/models/**/*rb”).each{|m| Dependencies.require_or_load m }
Object.subclasses_of ActiveRecord::Base
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Trackbacks
(Trackback URL)