fix rails4 version comparison