Greetings,
I have an application where Companies and Users need to belong to each other through a CompanyMembership model, which c
Companies
Users
CompanyMembership
How about something like this:
Company.find(:id).company_memberships.where(:admin => true).joins(:user)