Hi Do you know if there is a way to filter eagerly loaded models before they are loaded from the database? Say I want to find a location by its id, and in the same query load only subcategories where subcategory.location_id = location.id. Right now I have this, but all subcategories are getting loaded which is not what I want.
@location = Location.find(loc_id, :include => [:subcategories]) Thanks! --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
