make the gem able to use newer rails