Last Updated: February 25, 2016
·
1.433K
· joneslee85

Prevent abstract ActiveRecord instantiation

Having an sort of mixed STI + Abstract? Want to block the base class to be instantiable? Simple add in validates_presence for type column in the base class. :)