Displaying 1 result from an estimated 1 matches for "m002334".
Did you mean:
m000334
2010 Mar 11
3
Bypassing automatic STI generation
Hi,
Let''s say I have the following:
Product < AR
Memberships < Product
I know that the product with id 10 has its type column set to
"Membership", but still I''d like to treat it as a regular product.
So if I do: Product.find(10), Rails returns a Membership object.
Is it possible to tell rails to not care about STI and to simply return
a Product object?