In my database, I have a people table, and I use univariate inheritance with these classes:
class Person < ActiveRecord::Base end class Member < Person end class Business < Member end

The requests that it begets confuse me. I want Member.all return all Enterprises, as well as any other Member subtypes. What does he do, but only if I recently turned to the business class. I suppose because my classes are not cached in design mode (for obvious reasons), but still seems like weird / erroneous behavior.
Is this a mistake in the rails? Or is he working as intended? In any case, can anyone think of a good development solution?
source share