Rails4 compliance