The pull request with all the code.

same stuff for the above two lines... whenever you are searching another model to return a collection where all of the objects belong to another model it should probably be handled with a `has_many`, `belongs_to` relationship.