Allow queries to be chained on has_many associations