Fix Rails HEAD build