Hi, On Jan 27, 7:46 pm, Rémi Gagnon <rails-mailing-l...@andreas-s.net> 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. > > Any idea. I fear I got lost somewhere but did you know 'becomes' ? TransactionProduct.find(:first).product(true).becomes(ProductVT) BTW, the product(true) that I used is is quite(?) the same like product.reload ciao, tom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---