Fix dependency on rails to make gem compatible with RoR 4.1