List of all ActiveRecord constants (models)

If you wanna see list of all your models in your rails app, run the next command in rails console:

> ActiveRecord::Base.send(:subclasses).map(&:name)

Поделиться с друзьями

Френдинг

 

Comments

No comments so far.

Leave a Reply

 
(will not be published)
 
 
Comment