fix syntax issue on rails checks