Displaying 1 result from an estimated 1 matches for "female_employees".
2007 Jan 16
2
:include with conditions.
Lets say I have an owner record which has_many employees.
If I want to eager load the employees then Owner.find(:all, :include =>
:employee) works fine and dandy.
What if I only wanted to include male employees in the eager loading for
instance? Is there an elegant and simple way to eager load with a
condition applied to the included model?
Have google and API''d around but