Initialize relationships in /:class/:id route.