use major version instead of checking for exaction version string of rails