SIGN IN SIGN UP

Fix STI resolution for models inheriting directly from ActiveRecord::Base (#34)

The base_table_model method previously only stopped traversal when
encountering an abstract superclass. Models whose inheritance chain
reaches ActiveRecord::Base without passing through an abstract class
(like ApplicationRecord) would walk past AR::Base and raise NoMethodError.

Add ActiveRecord::Base as an additional stop condition so STI resolution
works for both inheritance patterns.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
R
Robbie Gill committed
395d8698880ccb8448b9784beb41f1efe2146b2f
Parent: 272be2c
Committed by GitHub <noreply@github.com> on 3/4/2026, 8:26:26 PM