code before cancan