I have a model "Company"
class Company < ActiveRecord::Base
And I also have MachineType and CompanyType that STI from the "Type"
I have both a MachineType id and a CompanyType id and I want to get
all companies that have both of those types.
Is there a way similar to something like this:
I'm just trying to figure out how to do this type of thing without
some nasty joins.
the science department.