Rules module in generators