On 11 March 2010 14:26, Fernando Perez <[email protected]> wrote:
> Is it possible to tell rails to not care about STI and to simply return
> a Product object?

But it *is* a Membership object... ?:-/

But if you *have* to have it as a Product for some reason, you can use
the ActiveRecord::Base "becomes" method:
http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002334

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to