Read more

Get the root class of an ActiveRecord STI hierarchy

Henning Koch
August 12, 2015Software engineer at makandra GmbH

Use base_class Show archive.org snapshot .

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

This traverses up the hierarchy until it encounters either

  • a class inheriting from ActiveRecord::Base or
  • a class inheriting from an abstract class (inheriting from ActiveRecord::Base)
Posted by Henning Koch to makandra dev (2015-08-12 11:46)