adjust Rails4