enforce rails < 5.0