title: using .where with .class.superclass
body: <p>I'm trying to figure out a way to retrieve a group of instances from the database using <code>.where</code>.</p>
  <p>Is it possible to use <code>.where</code> based on the <code>class.superclass</code>?
  For example, i would like to do something like <code>Person.where(class.superclass: &quot;Adult&quot;)</code>.</p>
  <p>But i'm not sure on the syntax, or if this is even possible. I can't find much about this approach on google.
  Thanks.</p>