removed dependency on rails version