updated patch to rails