If I have classes A, B, and C, and A is a parent of B and B is a
parent of C, and I put `plugin :single_table_inheritance, :kind` into
the A class, things generally work.  When I say A.all, I get back
instances of A, B, and C.  When I say C.all, I get back instances of
C.  However, when I say B.all, I _only_ get back instances of B
(instead of B and C).  Some of the instances of B I get back do
say :kind => "C", however, so they _should_ be instances of C, not B.
Known issue?  I don't have the plugin call in the children, either,
it's literally the equivalent of:

class A < Sequel::Model
  plugin :single_table_inheritance, :kind
end
class B < A; end
class C < B; end

I've tried this with both 3.21.0 and the latest git repo (66be40).

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to