On Jul 20, 8:10 pm, Kendall Gifford <zettab...@gmail.com> wrote: > > I'm assuming this is because if #shapes *could* be/return a relation then > said relation would really have to have the ability to map to _n_ seperate > SQL select statements (one for each table that can possibly be a "child"). > As such, further filtering/sorting/offset/limit operations on such a > relation would be hard, not make sense, or be impossible. > > Anyone more knowledgeable know if I'm wrong here?
You've pretty much hit the nail on the head - this issue is exactly what the has_many_polymorphs plugin was created to handle. I can't find a definitive repo for a version that works on Rails 3, though. --Matt Jones -- 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.