I ran into this when I was doing some polymorphic/sti stuff, and it took me a while to find the documentation describing the solution[1]. I'm no expert, so please forgive me, but this wasn't expected the behavior I expected, at least :)
So, I'd be curious to hear why things were implemented this way as well. [1] http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html Thanks, - Trevor On Jul 2, 7:23 pm, Pratik <[EMAIL PROTECTED]> wrote: > > Currently polymorphic_type field always use the class name of parent > in case of STI. > > This feels like a bug but then I was told it's expected behavior. This > makes something likehttp://pastie.caboo.se/75480impossible. Also, it > restricts the mining operations you can perform ( counting, grouping, > etc.). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
