Rails4 fixed