I have a couple models that inherit from a base class that then inherits from AR.
When they are used in a polymorphic relationship the "type" is always the base class. Just curious if anyone has a reason why it doesn't use the *actual* class rather then the base_class. I have patched AR to use the actual class if !base_class.table_exists? but it adds another query each time (which in turn fails some of the rails tests). My only guess was for use with STI, but even then I am not sure if there is a better solution then using the base_class -Eric -- 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.