ruby filter receives warehouse context as argument