On Friday, April 24, 2015 at 7:35:37 AM UTC-7, Quinn Harris wrote: > > I have released a sequel plugin that combines the functionality of the > single and class table inheritance plugins. This allows having subclasses > use the same tables as the parent class or an additional table as needed in > the same hierarchy. > > Github: https://github.com/QuinnHarris/sequel-table_inheritance > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FQuinnHarris%2Fsequel-table_inheritance&sa=D&sntz=1&usg=AFQjCNGVFUYerBoHSHtJADIazuuXeCBMsQ> > Gem: sequel-table_inheritance > > This should work as a drop in replacement for the class_table_inheritance > plugin. It passes all the specs for both table inheritance plugins. The > only exception is this plugin permits anonymous subclasses which fails one > class_table_inheritance test. > > It use the single_table_inheritance plugin so it has all its functionality > and has a little less duplicate functionality than the existing > class_table_inheritance plugin. > > This plugin can eager load subclasses in addition the the lazy loading in > the class_table_inheritance plugin. > > The git history attempts to break out each major feature into a different > commit. The original commit is just a copy of the single_table_inheritance > plugin. This progresses to add the basic functionality of both plugins > matching the existing code as close as possible. Later more features are > added and some of the code is reworked. >
Thanks for letting me know about this plugin. I haven't had a request for a similar feature, but I can imagine scenarios where you would want to use both types of inheritance. The code looks good, and it looks well documented and well tested, great job! I'll add a link to it from the Sequel website shortly. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
