Rails STI - Prevent base class from instantiation

Posted by Jake on Stack Overflow See other posts from Stack Overflow or by Jake
Published on 2010-05-17T15:31:49Z Indexed on 2010/05/17 15:41 UTC
Read the original article Hit count: 234

Filed under:

Is there any way in a Rails STI situation to through an error when the base class is Instantiated? Overriding initialize will do it but then that gets trickled down to the subclasses.

Thanks

© Stack Overflow or respective owner

Related posts about ruby-on-rails