Permit rails version 4 and above.