Single Table Inheritance and modules

Hello,

I have model objects inside modules to prevent naming collisions.
Does anyone know how to force ActiveRecord, when using STI, to use
the module name in the type column of the database?

I’ve tried forcing AR to save the module name in the type column, but
then when I try to retrieve the object, the sql statement includes
“where ‘type’ = ‘class’” (without the module name) and the object
cannot be found.

Thanks in advance,

-Anthony

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs