Displaying 1 result from an estimated 1 matches for "skeldigit".
2006 Jan 25
0
Changing the instantiated table when using STI
Is there any way to get AR to instantiate a different class when using
STI? Where it would normally instantiate Digit, I would like it to
instantiate SkelDigit. Here''s why...
My rails app has the following STI hierarchy:
Digit < Glyph < ActiveRecord::Base
My migrate script can''t use those classes directly however (backward
compatibility issues), so I created some skeleton classes:
SkelDigit < SkelGlyph < Active...