change rails version dependency to 4