new rails version

Hi we need to add this so it could be used with latest rails