Revise rails version dependency to 4.0.4 and up