Rails: Single Table Inheritance and models subdirectories
- by Chris
I have a card-game application which makes use of Single Table Inheritance. I have a class Card, and a database table cards with column type, and a number of subclasses of Card (including class Foo < Card and class Bar < Card, for the sake of argument).
As it happens, Foo is a card from the original printing of the game, which Bar is a card…