rufiasco-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Feb-09 01:45 UTC
STI and inheritance "type" column class naming
I am running Rails 1.2.6. I am using a polymorphic association on a belongs to. My model itself is inherited from another A:R class. When my model gets saved its base class name gets saved, versus its "real" class name. This has been detailed on the FAQ at: http://wiki.rubyonrails.org/rails/pages/UnderstandingPolymorphicAssociations Under the question "Why is record.class.base-class stored as the foreign-type, instead of just record.class?". A bug has been filed on this: http://dev.rubyonrails.org/ticket/6485 The bug ticket above contains some patches to fix this, however, I REALLY do not want to patch my Rails core. Plus, when I applied that patch only 3 out of 5 patches succeeded. I guess I could try and fix the other two by hand. At this point it just seems messy. Are there any other solutions? Or I am screwed? Thanks -Rupert --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---