Hi,

I am using single table inheritance in my application as follows:

class Company < ActiveRecord::Base
...
end

class Member < Company
...
end

class Applicant < Company
...
end

class Application  < ActiveRecord::Base
  has_one :applicant
  has_one :member
...
end

I wish to use an include statement when I do a find on the Application
(ie. Application.find(:all, :include => [:member]).  Is there a way to
accomplish this. I'm assuming it is not working because of the STI.

Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to