I’ve a situation where I find a record by ID that’s a child in a Single Table 
Inheritance relationship, and the object I get, although it is_a? <own class>, 
it fails is_a? <parent class> and won’t me call any of the instance methods on 
the parent class.

This is in 3.1. I’ve found mention of this happening in 3.0, but the fixes 
suggested there don’t help.

I’ve tried x.reload and x.become(x.type.classify.constantize), but these don’t 
help.

I’m not excited about grubbing around in the guts of AR to try to work out 
what’s up here. Has anyone got a silver bullet?

-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to