Is there a way that you can get a collection of all of the Models in your Rails app?

Basically, can I do the likes of: –

Models.each do |model|
  puts model.class.name
end

29 Answers
29

Leave a Reply

Your email address will not be published. Required fields are marked *