title: Rails force models to eager load
body: <p>I would like to be able to load an entire app so that I may find the descendants of a given class.</p>
  
  <p>For example given I have the following class defined:</p>
  
  <pre><code># app/models/foo_class.rb
  class FooClass &lt; MySpecialBaseClass
    # pasta code
  end
  </code></pre>
  
  <p>It won't be found with:</p>
  
  <pre><code>irb&gt; ObjectSpace.each_object.select { |obj| obj.is_a?(Class) &amp;&amp; obj &lt;= MySpecialBaseClass }
  =&gt; []
  </code></pre>
  
  <p>Until I call the const:</p>
  
  <pre><code>irb&gt; FooClass
  </code></pre>
  
  <p>Then it is returned:</p>
  
  <pre><code>irb&gt; ObjectSpace.each_object.select { |obj| obj.is_a?(Class) &amp;&amp; obj &lt;= MySpecialBaseClass } 
  
  =&gt; [FooClass]
  </code></pre>
  
  <p>How would I go about doing this?</p>