title: Rails ActiveModel: inheritance namespace
body: <p>I have a parent class</p>
  
  <pre><code>class Project::Subscription &lt; ActiveRecord::Base
  </code></pre>
  
  <p>And two inherited classes</p>
  
  <pre><code>class Project::Loan::Subscription &lt; Project::Subscription
  class Project::Investment::Subscription &lt; Project::Subscription
  </code></pre>
  
  <p>When I call <code>Project::Loan::Subscription.first</code>, it shows:</p>
  
  <pre><code>  Project::Loan::Subscription Load (0.4ms)  SELECT  "project_subscriptions".* FROM "project_subscriptions" WHERE "project_subscriptions"."type" IN ('Project::Loan::Subscription')  ORDER BY "project_subscriptions"."id" ASC LIMIT 
  </code></pre>
  
  <p>Which is correct.</p>
  
  <p>But when I call <code>Project::Investment::Subscription.first</code>, it shows:</p>
  
  <pre><code>Project::Subscription Load (0.3ms)  SELECT  "project_subscriptions".* FROM "project_subscriptions"  ORDER BY "project_subscriptions"."id" ASC LIMIT 1
  </code></pre>
  
  <p>In the last call, <code>Project::Investment::Subscription</code> is acting like <code>Project::Subscription</code></p>
  
  <p>What's wrong with my code?</p>