Thanks for the quick turnaround! I just gave it a spin on my local checkout and things are working.
On Mar 14, 11:21 am, Jeremy Evans <[email protected]> wrote: > On Mar 14, 9:05 am, Jeremy Evans <[email protected]> wrote: > > > > > > > > > > > On Mar 13, 10:40 pm, Max <[email protected]> wrote: > > > > 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). > > > This is definitely a bug. I'll work on it today. > > Fixed:https://github.com/jeremyevans/sequel/commit/c9db41ce9886e8b9596038fb... > > Jeremy -- 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.
