[Rails] Re: Multi table inheritance problem with has_one relationship

2009-01-28 Thread Rémi Gagnon
Thanks Tom for the suggestion. I did not know this. But the bads new is that does the same issue. It looks like the superclass name is cached in the association then even if I do a reload or (true) and becomes, it fetch the data from Product instead of ProductVT Rémi Thomas r. Koll wrote:

[Rails] Re: Multi table inheritance problem with has_one relationship

2009-01-28 Thread Thomas R. Koll
Hi, On Jan 27, 7:46 pm, Rémi Gagnon wrote: > TransactionProduct.find(:first).product.relaod  (reload the product > instance instead of ProductVT) > > Even if I see in the console that is a ProductVT it reloads Product.  I > checked in development.log and in performs the query on Product. > > An