search for: skelglyph

Displaying 1 result from an estimated 1 matches for "skelglyph".

2006 Jan 25
0
Changing the instantiated table when using STI
...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 < ActiveRecord::Base This way, my migrate script can use the skelton classes to move the data. The problem is, the type field of the glyphs table contains "Digit", "Letter" etc. Therefore, when I call SkelDigit.find(:all), I receive an array of Digit objects, not SkelDigit...